Class OffPeakHours.OffPeakHoursImpl
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours
org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours.OffPeakHoursImpl
- Enclosing class:
- OffPeakHours
-
Field Summary
Modifier and TypeFieldDescription(package private) final int
(package private) final int
Fields inherited from class org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours
DISABLED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether it is off-peak hourboolean
isOffPeakHour
(int targetHour) Returns whethertargetHour
is off-peak hourMethods inherited from class org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours
getInstance, getInstance
-
Field Details
-
startHour
-
endHour
-
-
Constructor Details
-
OffPeakHoursImpl
OffPeakHoursImpl(int startHour, int endHour) - Parameters:
startHour
- inclusiveendHour
- exclusive
-
-
Method Details
-
isOffPeakHour
Description copied from class:OffPeakHours
Returns whether it is off-peak hour- Specified by:
isOffPeakHour
in classOffPeakHours
-
isOffPeakHour
Description copied from class:OffPeakHours
Returns whethertargetHour
is off-peak hour- Specified by:
isOffPeakHour
in classOffPeakHours
-