@InterfaceAudience.Private public abstract class OffPeakHours extends Object
| Modifier and Type | Field and Description |
|---|---|
static OffPeakHours |
DISABLED |
| Constructor and Description |
|---|
OffPeakHours() |
| Modifier and Type | Method and Description |
|---|---|
static OffPeakHours |
getInstance(org.apache.hadoop.conf.Configuration conf) |
static OffPeakHours |
getInstance(int startHour,
int endHour) |
abstract boolean |
isOffPeakHour() |
abstract boolean |
isOffPeakHour(int targetHour) |
public static final OffPeakHours DISABLED
public static OffPeakHours getInstance(org.apache.hadoop.conf.Configuration conf)
public static OffPeakHours getInstance(int startHour, int endHour)
startHour - inclusiveendHour - exclusivepublic abstract boolean isOffPeakHour(int targetHour)
targetHour is off-peak hourpublic abstract boolean isOffPeakHour()
Copyright © 2014 The Apache Software Foundation. All rights reserved.