com.genesyslab.ail
Class ServiceStatus

java.lang.Object
  extended by com.genesyslab.ail.ServiceStatus

public class ServiceStatus
extends java.lang.Object

Describes the status of a service along with some connection information.

Changes in this service's status generate events. Create and add a ServiceListener to the AilFactory to track events reporting these status changes.


Nested Class Summary
static class ServiceStatus.Status
          Constants for the statuses of the services.
static class ServiceStatus.Type
          Constants for the types of services.
 
Field Summary
 java.lang.String mHost
          The name of the host where the service should run.
 java.lang.String mName
          The name of the service.
 java.lang.String mPort
          The port on which the service should run.
 ServiceStatus.Status mStatus
          The current status of the service.
 Switch mSwitch
          The Switch associated with this service.
 ServiceStatus.Type mType
          The type of the service.
 
Constructor Summary
ServiceStatus()
           
 
Method Summary
 java.lang.String toString()
          Returns a String representation for this ServiceStatus.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mType

public ServiceStatus.Type mType
The type of the service.


mName

public java.lang.String mName
The name of the service.


mHost

public java.lang.String mHost
The name of the host where the service should run.


mPort

public java.lang.String mPort
The port on which the service should run.


mStatus

public ServiceStatus.Status mStatus
The current status of the service.


mSwitch

public Switch mSwitch
The Switch associated with this service. Only for services of type ServiceStatus.Type.TELEPHONY, null for other services.

Constructor Detail

ServiceStatus

public ServiceStatus()
Method Detail

toString

public java.lang.String toString()
Returns a String representation for this ServiceStatus. For debug purposes only.

Overrides:
toString in class java.lang.Object