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