com.cafesoft.cams.service
Class CamsServiceState

java.lang.Object
  |
  +--com.cafesoft.cams.service.CamsServiceState

public final class CamsServiceState
extends Object

Type safe constant class that contains all of the various CamsServiceStates. These various states are used to describe the availability of various Cams Services.

Since:
12/11/03
See Also:
CamsServiceMonitor

Field Summary
static CamsServiceState AVAILABLE
          Available CamsServiceState is used to indicate that a given service is available and ready for use.
static CamsServiceState UNAVAILABLE
          Unavailable CamsServiceState is used to indicate that a given service is Unavailable and unfit for use.
static CamsServiceState UNKNOWN
          Unknown CamsServiceState is used to indicate that the state of a given service is unknown.
 
Method Summary
 boolean equals(Object object)
          Determine the equality of objects.
 String getName()
          Get the name of the CamsServiceState.
 int hashCode()
          Get the hashcode of the CamsServiceState.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final CamsServiceState UNKNOWN
Unknown CamsServiceState is used to indicate that the state of a given service is unknown.


AVAILABLE

public static final CamsServiceState AVAILABLE
Available CamsServiceState is used to indicate that a given service is available and ready for use.


UNAVAILABLE

public static final CamsServiceState UNAVAILABLE
Unavailable CamsServiceState is used to indicate that a given service is Unavailable and unfit for use.

Method Detail

getName

public String getName()
Get the name of the CamsServiceState.

Returns:
the name of the CamsServiceState.

equals

public boolean equals(Object object)
Determine the equality of objects. Follows the general equals contract defined by java's Object class javadoc.

Overrides:
equals in class Object
Parameters:
object - the object to compare this object against.
Returns:
true if objects are equal, false otherwise.

hashCode

public int hashCode()
Get the hashcode of the CamsServiceState.

Overrides:
hashCode in class Object
Returns:
the hashcode of the CamsServiceState.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.