i3.dragos.core
Enum Service.State

java.lang.Object
  extended by java.lang.Enum<Service.State>
      extended by i3.dragos.core.Service.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Service.State>
Enclosing interface:
Service

public static enum Service.State
extends java.lang.Enum<Service.State>

A Service can be in different states.


Enum Constant Summary
STARTED
          Started state.
STOPPED
          Stopped state.
SUSPENDED
          Suspended state.
 
Method Summary
static Service.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Service.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STOPPED

public static final Service.State STOPPED
Stopped state. The service is not running.


STARTED

public static final Service.State STARTED
Started state. The services has been started and is running.


SUSPENDED

public static final Service.State SUSPENDED
Suspended state. The service is currently suspended.

Method Detail

values

public static Service.State[] 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 (Service.State c : Service.State.values())
    System.out.println(c);

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

valueOf

public static Service.State valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.