radtools.services
Enum RADService.State

java.lang.Object
  extended by java.lang.Enum<RADService.State>
      extended by radtools.services.RADService.State
All Implemented Interfaces:
Serializable, Comparable<RADService.State>, rcf.core.util.accessor.GUIAccessible
Enclosing interface:
RADService

public static enum RADService.State
extends Enum<RADService.State>
implements rcf.core.util.accessor.GUIAccessible

An enumeration of the valid states which a RADService can be in. The various states also have icons associated with them, for display in the RADTools window. These are both the states of the service can be in and the states it can be set to.

TODO: Javadoc review, Seal/Finalize

Version:
$Revision: 1.10 $
Author:
Greg Gibeling

Enum Constant Summary
Failed
          The service has failed, permanently or transiently.
Paused
          The service is paused or suspended, or should be suspended.
Restarting
          The service is currently restarting, or should restarted.
Running
          The service is running properly or should be started.
Stopped
          The service is not running, or should be shut down.
Uninstalled
          The service has not been installed on the RADService.dependency().Node.parent() or should be uninstalled.
Unknown
          The state of the service is unknown.
 
Field Summary
 Icon icon
          The icon which represents this state.
 
Method Summary
 Icon icon()
           
 JPopupMenu popupMenu()
           
static RADService.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RADService.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

Uninstalled

public static final RADService.State Uninstalled
The service has not been installed on the RADService.dependency().Node.parent() or should be uninstalled.


Stopped

public static final RADService.State Stopped
The service is not running, or should be shut down.


Running

public static final RADService.State Running
The service is running properly or should be started.


Restarting

public static final RADService.State Restarting
The service is currently restarting, or should restarted.


Paused

public static final RADService.State Paused
The service is paused or suspended, or should be suspended.


Unknown

public static final RADService.State Unknown
The state of the service is unknown. This state is generally used to indicate that the RADService.management().Node.parent() is not Running.


Failed

public static final RADService.State Failed
The service has failed, permanently or transiently.

Field Detail

icon

public final Icon icon
The icon which represents this state.

Method Detail

values

public static final RADService.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(RADService.State c : RADService.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 RADService.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

icon

public Icon icon()
Specified by:
icon in interface rcf.core.util.accessor.GUIAccessible

popupMenu

public JPopupMenu popupMenu()
Specified by:
popupMenu in interface rcf.core.util.accessor.GUIAccessible