com.genesyslab.omsdk.commons
Class ServiceStatus

java.lang.Object
  extended bycom.genesyslab.omsdk.commons.OMSDKEnum
      extended bycom.genesyslab.omsdk.commons.ServiceStatus

public final class ServiceStatus
extends OMSDKEnum

Enumerates the possible statuses of service connections.

Since:
7.1.008.00
See Also:
ServiceInfo.getStatus()

Field Summary
static ServiceStatus OFF
          Indicates that the service is disconnected from the server.
static ServiceStatus OFF_CONNECTING
          Indicates that the service is attempting to connect the server.
static int OFF_CONNECTING_INT
          Integer representation of OFF_CONNECTING status.
static int OFF_INT
          Integer representation of OFF status.
static ServiceStatus ON
          Indicates that the service is connected to the server and that it is working properly.
static int ON_INT
          Integer representation of ON status.
 
Method Summary
static ServiceStatus getStatus(int ordinal)
          Returns the enumerated value corresponding to the specified integer.
 
Methods inherited from class com.genesyslab.omsdk.commons.OMSDKEnum
toInt, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ON_INT

public static int ON_INT
Integer representation of ON status.


ON

public static final ServiceStatus ON
Indicates that the service is connected to the server and that it is working properly.


OFF_INT

public static int OFF_INT
Integer representation of OFF status.


OFF

public static final ServiceStatus OFF
Indicates that the service is disconnected from the server.
This service cannot be used until it changes to ON status.


OFF_CONNECTING_INT

public static int OFF_CONNECTING_INT
Integer representation of OFF_CONNECTING status.


OFF_CONNECTING

public static final ServiceStatus OFF_CONNECTING
Indicates that the service is attempting to connect the server.
This service cannot be used until it changes to ON status.

Method Detail

getStatus

public static ServiceStatus getStatus(int ordinal)
Returns the enumerated value corresponding to the specified integer.

Parameters:
ordinal - integer representation.
Returns:
the enumerated value.