com.metamatrix.platform.registry
Class ServiceRegistryBinding

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

public class ServiceRegistryBinding
extends RegistryBinding<ServiceInterface>

See Also:
Serialized Form

Nested Class Summary
static class ServiceRegistryBinding.StateAwareProxy
           
 
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, int state, java.util.Date time, boolean essential, MessageBus bus)
           
ServiceRegistryBinding(ServiceInterface si, java.lang.String hostName, DeployedComponent deployedComponent, boolean essential, MessageBus bus)
          Create new ServiceRegistryInstance
 
Method Summary
 void checkState()
           
 int getCurrentState()
           
 DeployedComponent getDeployedComponent()
           
 java.lang.String getDeployedName()
           
 java.lang.Throwable getInitException()
           
 java.lang.String getInstanceName()
           
 java.lang.String getProcessName()
           
 java.util.Collection getQueueNames()
           
 ServiceInterface getService()
           
 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)
           
 java.lang.String toString()
           
 void updateState(int state)
           
 
Methods inherited from class com.metamatrix.platform.registry.RegistryBinding
getBindObject, getHostName, getStartTime, invalidateBindObject, isLocal, setStartTime
 
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,
                              int state,
                              java.util.Date time,
                              boolean essential,
                              MessageBus bus)

ServiceRegistryBinding

public ServiceRegistryBinding(ServiceInterface si,
                              java.lang.String hostName,
                              DeployedComponent deployedComponent,
                              boolean essential,
                              MessageBus bus)
Create new ServiceRegistryInstance

Method Detail

getServiceID

public ServiceID getServiceID()
Return ServiceID for this binding

Returns:
ServiceID

getServiceType

public java.lang.String getServiceType()

getInstanceName

public java.lang.String getInstanceName()

getDeployedName

public java.lang.String getDeployedName()

getProcessName

public java.lang.String getProcessName()

getCurrentState

public int getCurrentState()

getStateChangeTime

public java.util.Date getStateChangeTime()

getInitException

public java.lang.Throwable getInitException()

isEssential

public boolean isEssential()

getDeployedComponent

public DeployedComponent getDeployedComponent()

isServiceBad

public boolean isServiceBad()

getQueueNames

public java.util.Collection getQueueNames()

checkState

public void checkState()

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()

getService

public ServiceInterface getService()

setDirty

public void setDirty(boolean dirty)

isDirty

public boolean isDirty()


Copyright © 2009. All Rights Reserved.