com.metamatrix.platform.admin.api.runtime
Class ServiceData

java.lang.Object
  extended by com.metamatrix.platform.admin.api.runtime.ComponentData
      extended by com.metamatrix.platform.admin.api.runtime.ServiceData
All Implemented Interfaces:
java.io.Serializable

public class ServiceData
extends ComponentData

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.platform.admin.api.runtime.ComponentData
deployed, hashCode, registered
 
Constructor Summary
ServiceData(ServiceID serviceID, java.lang.String serviceName, java.lang.String instanceName, ComponentDefnID defnID, java.lang.String deployedComponentName, java.util.Collection queueNames, int state, java.util.Date time, boolean essential, boolean deployed, boolean registered, java.lang.Throwable initError)
          Create new ServiceRegistryInstance
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if the specified object is semantically equal to this instance.
 ComponentDefnID getComponentDefnID()
          Return ComponentDefnID for Service.
 int getCurrentState()
           
 java.lang.Throwable getInitError()
           
 java.util.Collection getQueueNames()
          Return collection of queue names for the service.
 ServiceID getServiceID()
          Return ServiceID for this binding
 java.util.Date getStateChangeTime()
           
 boolean isEssential()
           
 
Methods inherited from class com.metamatrix.platform.admin.api.runtime.ComponentData
getName, hashCode, isDeployed, isRegistered, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceData

public ServiceData(ServiceID serviceID,
                   java.lang.String serviceName,
                   java.lang.String instanceName,
                   ComponentDefnID defnID,
                   java.lang.String deployedComponentName,
                   java.util.Collection queueNames,
                   int state,
                   java.util.Date time,
                   boolean essential,
                   boolean deployed,
                   boolean registered,
                   java.lang.Throwable initError)
Create new ServiceRegistryInstance

Parameters:
serviceID - Identifies service
serviceName - Name of service
instanceName - Name of service instance
defnID - Component Definition ID
deployedComponent -
queueNames - Collection of queue names for the service
state -
time -
essential, - true indicates service is an essential service and cannot be shutdown if there are no other similiar services running.
deployed, - true indicates service is deployed
registered, - true indicates service is registered with Regisitry
initError, - Exception that occured during initialization
Throws:
RegistryException - if an an error occurs creating remote instance of service.
Method Detail

getQueueNames

public java.util.Collection getQueueNames()
Return collection of queue names for the service.


getServiceID

public ServiceID getServiceID()
Return ServiceID for this binding

Returns:
ServiceID

getCurrentState

public int getCurrentState()

getStateChangeTime

public java.util.Date getStateChangeTime()

getComponentDefnID

public ComponentDefnID getComponentDefnID()
Return ComponentDefnID for Service.

Returns:
ComponentDefnID

getInitError

public java.lang.Throwable getInitError()

isEssential

public boolean isEssential()

equals

public boolean equals(java.lang.Object obj)
Returns true if the specified object is semantically equal to this instance.

Overrides:
equals in class ComponentData
Parameters:
obj - the object that this instance is to be compared to.
Returns:
whether the object is equal to this object.


Copyright © 2009. All Rights Reserved.