radtools.services.linux
Enum NagiosStatsRequest.State

java.lang.Object
  extended by java.lang.Enum<NagiosStatsRequest.State>
      extended by radtools.services.linux.NagiosStatsRequest.State
All Implemented Interfaces:
Serializable, Comparable<NagiosStatsRequest.State>
Enclosing class:
NagiosStatsRequest

private static enum NagiosStatsRequest.State
extends Enum<NagiosStatsRequest.State>

Used to keep track of which portion of the status file is being read during a call to refreshStats(). If the current line is outside of a particular object block, the state is in Limbo. Otherwise, it is in one of the four types of object blocks: Info, Program, Host, Service.


Enum Constant Summary
Host
           
Info
           
Limbo
           
Prog
           
Serv
           
 
Method Summary
static NagiosStatsRequest.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NagiosStatsRequest.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Limbo

public static final NagiosStatsRequest.State Limbo

Info

public static final NagiosStatsRequest.State Info

Prog

public static final NagiosStatsRequest.State Prog

Host

public static final NagiosStatsRequest.State Host

Serv

public static final NagiosStatsRequest.State Serv
Method Detail

values

public static final NagiosStatsRequest.State[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(NagiosStatsRequest.State c : NagiosStatsRequest.State.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static NagiosStatsRequest.State 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 name