@InterfaceAudience.Private public abstract class OffPeakHours extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static OffPeakHours |
DISABLED |
| 构造器和说明 |
|---|
OffPeakHours() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2007–2019 The Apache Software Foundation. All rights reserved.