org.apache.hadoop.hbase.regionserver.compactions
Class OffPeakHours
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours
@InterfaceAudience.Private
public abstract class OffPeakHours
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DISABLED
public static final OffPeakHours DISABLED
OffPeakHours
public OffPeakHours()
getInstance
public static OffPeakHours getInstance(org.apache.hadoop.conf.Configuration conf)
getInstance
public static OffPeakHours getInstance(int startHour,
int endHour)
- Parameters:
startHour
- inclusiveendHour
- exclusive
isOffPeakHour
public abstract boolean isOffPeakHour(int targetHour)
- Returns:
- whether
targetHour
is off-peak hour
isOffPeakHour
public abstract boolean isOffPeakHour()
- Returns:
- whether it is off-peak hour
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.