| java.lang.Object com.sun.jbi.framework.ServiceUnit
ServiceUnit | public class ServiceUnit implements com.sun.jbi.ServiceUnitInfo(Code) | | This class holds information about Service Unit deployed to a Binding
Component (BC) or Service Engine (SE). This information is used by the JBI
framework to manage Service Unit life cycles. The information is persisted
by the Component Registry across restarts of the JBI framework.
author: Sun Microsystems, Inc. |
ServiceUnit | public ServiceUnit(String saName, String name, String filePath)(Code) | | Create a new ServiceUnit instance.
Parameters: saName - is the unique name for the Service Assembly that containsthis Service Unit. Parameters: name - is the unique name for this Service Unit. Parameters: filePath - is the full path to the file defining this Service Unit. |
ServiceUnit | public ServiceUnit(String saName, String name, String filePath, String targetComp)(Code) | | Create a new ServiceUnit instance.
Parameters: saName - is the unique name for the Service Assembly that containsthis Service Unit. Parameters: name - is the unique name for this Service Unit. Parameters: filePath - is the full path to the file defining this Service Unit. Parameters: targetComp - is the name of the component to which this Service Unitis deployed. |
ServiceUnit | public ServiceUnit(com.sun.jbi.ServiceUnitInfo suInfo)(Code) | | Create a new ServiceUnit instance from a ServiceUnitInfo instance.
Parameters: suInfo - is the instance to use to create the new instance. |
equals | public boolean equals(Object object)(Code) | | Compare another Object with this one for equality. Note that the
state fields are not checked, only the fields that are not mutable.
Parameters: object - The object to be compared with this one. True if the object is equal to this Component, falseif they are not equal. |
getDesiredState | public ServiceUnitState getDesiredState()(Code) | | Get the desired state for this Service Unit.
the desired state. |
getFilePath | public String getFilePath()(Code) | | Get the file path for this Service Unit.
the file path. |
getName | public String getName()(Code) | | Get the unique name for this Service Unit.
the Service Unit name. |
getServiceAssemblyName | public String getServiceAssemblyName()(Code) | | Get the unique name for the Service Assembly that contains this Service
Unit.
the Service Assembly name. |
getState | public ServiceUnitState getState()(Code) | | Get the state of this Service Unit.
the state, either SHUTDOWN, STARTED, or STOPPED. |
getStateAsString | public String getStateAsString()(Code) | | Get the state of this Service Unit as a string value.
the state as a string, either "shutdown", "started", or "stopped". |
getStateAsString | public String getStateAsString(ServiceUnitState state)(Code) | | Get a Service Unit state as a localized string value.
Parameters: state - a state, either SHUTDOWN, STARTED, or STOPPED. the state as a string, either "Shutdown", "Started", or "Stopped"in the current locale. |
getTargetComponent | public String getTargetComponent()(Code) | | Get the target component for this Service Unit. This is the name of the
component to which the Service Unit is deployed.
the target component name. |
hashCode | public int hashCode()(Code) | | Get the hash code for this Service Unit instance.
the hash code. |
isShutdown | public boolean isShutdown()(Code) | | Check to see if this Service Unit is shut down.
true if the Service Unit is shut down, false if not. |
isStarted | public boolean isStarted()(Code) | | Check to see if this Service Unit is started.
true if the Service Unit is started, false if not. |
isStopped | public boolean isStopped()(Code) | | Check to see if this Service Unit is stopped.
true if the Service Unit is stopped, false if not. |
setShutdown | public void setShutdown()(Code) | | Set the Service Unit state to shutdown.
|
setStarted | public void setStarted()(Code) | | Set the Service Unit state to started.
|
setState | void setState(ServiceUnitState state)(Code) | | Set the Service Unit state. This method is used ONLY by startup and unit
test code. It does no validation of the state.
Parameters: state - the state to be set.Valid states are SHUTDOWN, STOPPED, and STARTED. |
setStopped | public void setStopped()(Code) | | Set the Service Unit state to stopped.
|
setTargetComponent | public void setTargetComponent(String componentName)(Code) | | Set the target component for this Service Unit. This is the name of the
component to which the Service Unit is deployed.
Parameters: componentName - the target component name. |
toString | public String toString()(Code) | | Convert to a String.
the String representation of this ServiceUnit. |
|
|