Class OffPeakHours
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours
- Direct Known Subclasses:
OffPeakHours.OffPeakHoursImpl
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OffPeakHoursgetInstance(int startHour, int endHour) static OffPeakHoursgetInstance(org.apache.hadoop.conf.Configuration conf) abstract booleanReturns whether it is off-peak hourabstract booleanisOffPeakHour(int targetHour) Returns whethertargetHouris off-peak hourprivate static booleanisValidHour(int hour)
-
Field Details
-
LOG
-
DISABLED
-
-
Constructor Details
-
OffPeakHours
public OffPeakHours()
-
-
Method Details
-
getInstance
-
getInstance
- Parameters:
startHour- inclusiveendHour- exclusive
-
isValidHour
-
isOffPeakHour
Returns whethertargetHouris off-peak hour -
isOffPeakHour
Returns whether it is off-peak hour
-