com.metamatrix.platform.registry
Class ServiceRegistryBinding

java.lang.Object
  extended by com.metamatrix.platform.registry.ServiceRegistryBinding
All Implemented Interfaces:
java.io.Serializable

public class ServiceRegistryBinding
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ServiceRegistryBinding(ServiceID serviceID, ServiceInterface si, java.lang.String serviceType, java.lang.String instanceName, java.lang.String componentType, java.lang.String deployedName, java.lang.String hostName, DeployedComponent deployedComponent, ProductServiceConfigID pscID, int state, java.util.Date time, boolean essential, MessageBus bus)
          Create new ServiceRegistryInstance
 
Method Summary
 java.lang.String getComponentType()
           
 int getCurrentState()
           
 DeployedComponent getDeployedComponent()
           
 java.lang.String getDeployedName()
           
 java.lang.String getHostName()
           
 java.lang.Throwable getInitException()
           
 java.lang.String getInstanceName()
           
 java.lang.String getProcessName()
           
 ProductServiceConfigID getPscID()
           
 java.util.Collection getQueueNames()
           
 ServiceInterface getService()
          Return reference to service If service is local then return local reference Else return stub
 ServiceID getServiceID()
          Return ServiceID for this binding
 java.lang.String getServiceType()
           
 java.util.Date getStateChangeTime()
           
 boolean isActive()
           
 boolean isDirty()
           
 boolean isEssential()
           
 boolean isServiceBad()
           
 void markServiceAsBad()
           
 void setDirty(boolean dirty)
           
 void setInitException(java.lang.Throwable t)
           
 java.lang.String toString()
           
 void updateState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceRegistryBinding

public ServiceRegistryBinding(ServiceID serviceID,
                              ServiceInterface si,
                              java.lang.String serviceType,
                              java.lang.String instanceName,
                              java.lang.String componentType,
                              java.lang.String deployedName,
                              java.lang.String hostName,
                              DeployedComponent deployedComponent,
                              ProductServiceConfigID pscID,
                              int state,
                              java.util.Date time,
                              boolean essential,
                              MessageBus bus)
Create new ServiceRegistryInstance

Parameters:
serviceID - Identifies service
service - ServiceInstance
serviceType -
instanceName - Instance name of service
componenetType -
deployedName -
hostName -
state -
time -
essential, - true indicates service is an essential service and cannot be shutdown if there are no other similiar services running.
Method Detail

getServiceID

public ServiceID getServiceID()
Return ServiceID for this binding

Returns:
ServiceID

getService

public ServiceInterface getService()
Return reference to service If service is local then return local reference Else return stub


getServiceType

public java.lang.String getServiceType()

getInstanceName

public java.lang.String getInstanceName()

getComponentType

public java.lang.String getComponentType()

getDeployedName

public java.lang.String getDeployedName()

getHostName

public java.lang.String getHostName()

getProcessName

public java.lang.String getProcessName()

getCurrentState

public int getCurrentState()

getStateChangeTime

public java.util.Date getStateChangeTime()

isEssential

public boolean isEssential()

getDeployedComponent

public DeployedComponent getDeployedComponent()

getPscID

public ProductServiceConfigID getPscID()

isServiceBad

public boolean isServiceBad()

getQueueNames

public java.util.Collection getQueueNames()

getInitException

public java.lang.Throwable getInitException()

setInitException

public void setInitException(java.lang.Throwable t)

updateState

public void updateState(int state)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isActive

public boolean isActive()

markServiceAsBad

public void markServiceAsBad()

setDirty

public void setDirty(boolean dirty)

isDirty

public boolean isDirty()


Copyright © 2009. All Rights Reserved.