- All Implemented Interfaces:
Serializable,Comparable<LoadSample>,Constable
Determines which load sampling interval to use.
Remarks:
The Slice compiler generated this enum from Slice enumeration ::IceGrid::LoadSample.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSample every minute.Sample every fifteen minutes.Sample every five minutes. -
Method Summary
Modifier and TypeMethodDescriptionstatic LoadSampleice_read(InputStream istr) Unmarshals aLoadSamplefrom an input stream.static Optional<LoadSample>ice_read(InputStream istr, int tag) Unmarshals an optionalLoadSamplefrom an input stream.voidice_write(OutputStream ostr) Marshals thisLoadSampleinto an output stream.static voidice_write(OutputStream ostr, int tag, LoadSample v) Marshals an optionalLoadSampleinto an output stream.static voidice_write(OutputStream ostr, int tag, Optional<LoadSample> v) Marshals an optionalLoadSampleinto an output stream.static voidice_write(OutputStream ostr, LoadSample v) Marshals aLoadSampleinto an output stream.intvalue()Returns the integer value of this enumerator.static LoadSamplevalueOf(int v) Returns theLoadSampleenumerator corresponding to the given integer value.static LoadSampleReturns the enum constant of this class with the specified name.static LoadSample[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LoadSample1
Sample every minute. -
LoadSample5
Sample every five minutes. -
LoadSample15
Sample every fifteen minutes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()Returns the integer value of this enumerator.- Returns:
- the integer value of this enumerator
-
valueOf
Returns theLoadSampleenumerator corresponding to the given integer value.- Parameters:
v- the integer value of the enumerator- Returns:
- the
LoadSampleenumerator corresponding to the given integer value, ornullif no such enumerator exists
-
ice_write
Marshals thisLoadSampleinto an output stream.- Parameters:
ostr- the output stream
-
ice_write
Marshals aLoadSampleinto an output stream.- Parameters:
ostr- the output streamv- theLoadSampleto marshal
-
ice_read
Unmarshals aLoadSamplefrom an input stream.- Parameters:
istr- the input stream- Returns:
- the unmarshaled
LoadSample
-
ice_write
Marshals an optionalLoadSampleinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_write
Marshals an optionalLoadSampleinto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_read
Unmarshals an optionalLoadSamplefrom an input stream.- Parameters:
istr- the input streamtag- the tag- Returns:
- the unmarshaled value
-