Package org.pentaho.platform.config
Enum AnalysisView
- java.lang.Object
-
- java.lang.Enum<AnalysisView>
-
- org.pentaho.platform.config.AnalysisView
-
- All Implemented Interfaces:
Serializable
,Comparable<AnalysisView>
public enum AnalysisView extends Enum<AnalysisView>
The AnalysisView enum facilitates predefined views for charting performance metrics- Author:
- gmoran
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIFTEEN_MINUTES
NINETY_DAYS
ONE_HOUR
SEVEN_DAYS
THIRTY_DAYS
THIRTY_MINUTES
TWELVE_HOURS
TWENTY_FOUR_HOURS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getInterval()
int
getPeriods()
static AnalysisView
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnalysisView[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIFTEEN_MINUTES
public static final AnalysisView FIFTEEN_MINUTES
-
THIRTY_MINUTES
public static final AnalysisView THIRTY_MINUTES
-
ONE_HOUR
public static final AnalysisView ONE_HOUR
-
TWELVE_HOURS
public static final AnalysisView TWELVE_HOURS
-
TWENTY_FOUR_HOURS
public static final AnalysisView TWENTY_FOUR_HOURS
-
SEVEN_DAYS
public static final AnalysisView SEVEN_DAYS
-
THIRTY_DAYS
public static final AnalysisView THIRTY_DAYS
-
NINETY_DAYS
public static final AnalysisView NINETY_DAYS
-
-
Method Detail
-
values
public static AnalysisView[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnalysisView c : AnalysisView.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnalysisView valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getInterval
public final double getInterval()
- Returns:
- the interval
-
getPeriods
public final int getPeriods()
- Returns:
- the periods
-
-