org.apache.hadoop.hbase.regionserver.compactions
Class OffPeakHours

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.OffPeakHours

@InterfaceAudience.Private
public abstract class OffPeakHours
extends Object


Field Summary
static OffPeakHours DISABLED
           
 
Constructor Summary
OffPeakHours()
           
 
Method Summary
static OffPeakHours getInstance(org.apache.hadoop.conf.Configuration conf)
           
static OffPeakHours getInstance(int startHour, int endHour)
           
abstract  boolean isOffPeakHour()
           
abstract  boolean isOffPeakHour(int targetHour)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISABLED

public static final OffPeakHours DISABLED
Constructor Detail

OffPeakHours

public OffPeakHours()
Method Detail

getInstance

public static OffPeakHours getInstance(org.apache.hadoop.conf.Configuration conf)

getInstance

public static OffPeakHours getInstance(int startHour,
                                       int endHour)
Parameters:
startHour - inclusive
endHour - 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 © 2007–2016 The Apache Software Foundation. All rights reserved.