public static enum MonitoringConstants.Period extends Enum<MonitoringConstants.Period>
Enum Constant and Description |
---|
LAST_DAY
Last 24 hours.
|
LAST_HOUR
Last hour.
|
LAST_MONTH
Last month.
|
LAST_WEEK
Last week.
|
LAST_YEAR
Last year.
|
Modifier and Type | Method and Description |
---|---|
long |
getTime()
Returns the time in seconds for current period.
|
static MonitoringConstants.Period |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MonitoringConstants.Period[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonitoringConstants.Period LAST_HOUR
public static final MonitoringConstants.Period LAST_DAY
public static final MonitoringConstants.Period LAST_WEEK
public static final MonitoringConstants.Period LAST_MONTH
public static final MonitoringConstants.Period LAST_YEAR
public static MonitoringConstants.Period[] values()
for (MonitoringConstants.Period c : MonitoringConstants.Period.values()) System.out.println(c);
public static MonitoringConstants.Period valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic long getTime()