|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.DefaultServiceUnit
public class DefaultServiceUnit
| Field Summary | |
|---|---|
protected ServiceMixComponent |
component
|
protected java.util.Map<java.lang.String,Endpoint> |
endpoints
|
protected java.lang.String |
name
|
protected java.lang.String |
rootPath
|
protected java.lang.String |
status
|
| Constructor Summary | |
|---|---|
DefaultServiceUnit()
|
|
DefaultServiceUnit(ServiceMixComponent component)
|
|
| Method Summary | |
|---|---|
void |
addEndpoint(Endpoint endpoint)
Adds an endpoint to this service unit. |
ServiceMixComponent |
getComponent()
Retrieves the component where this SU is deployed. |
java.lang.ClassLoader |
getConfigurationClassLoader()
Retrieve this service unit specific classloader. |
java.lang.String |
getCurrentState()
Retrieve the state of this service unit. |
Endpoint |
getEndpoint(java.lang.String key)
|
java.util.Collection<Endpoint> |
getEndpoints()
Retrieves the list of deployed endpoints. |
java.lang.String |
getName()
Retrieves the name of this service unit. |
java.lang.String |
getRootPath()
Retrieves the root path of this service unit. |
void |
init()
Puts the SU in a STOPPED state. |
void |
removeEndpoint(Endpoint endpoint)
Removes an endpoint from this service unit. |
void |
setComponent(ServiceMixComponent component)
|
void |
setName(java.lang.String name)
|
void |
setRootPath(java.lang.String rootPath)
|
void |
shutDown()
Transition this service unit into the SHUTDOWN state. |
void |
start()
Transition this service unit into the STARTED state. |
void |
stop()
Transition this service unit to a STOPPED state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ServiceMixComponent component
protected java.lang.String name
protected java.lang.String rootPath
protected java.lang.String status
protected java.util.Map<java.lang.String,Endpoint> endpoints
| Constructor Detail |
|---|
public DefaultServiceUnit()
public DefaultServiceUnit(ServiceMixComponent component)
| Method Detail |
|---|
public void init()
throws java.lang.Exception
ServiceUnit
init in interface ServiceUnitjava.lang.ExceptionEndpoint.start()
public void start()
throws java.lang.Exception
ServiceUnit
start in interface ServiceUnitjava.lang.ExceptionEndpoint.start()
public void stop()
throws java.lang.Exception
ServiceUnit
stop in interface ServiceUnitjava.lang.ExceptionEndpoint.stop()
public void shutDown()
throws java.lang.Exception
ServiceUnit
shutDown in interface ServiceUnitjava.lang.ExceptionEndpoint.deactivate()public java.lang.String getCurrentState()
ServiceUnit
getCurrentState in interface ServiceUnitpublic java.lang.String getName()
ServiceUnit
getName in interface ServiceUnitpublic void setName(java.lang.String name)
public java.lang.String getRootPath()
ServiceUnit
getRootPath in interface ServiceUnitpublic void setRootPath(java.lang.String rootPath)
public ServiceMixComponent getComponent()
ServiceUnit
getComponent in interface ServiceUnitpublic void setComponent(ServiceMixComponent component)
component - The component to set.public java.util.Collection<Endpoint> getEndpoints()
ServiceUnit
getEndpoints in interface ServiceUnit
public void addEndpoint(Endpoint endpoint)
throws javax.jbi.management.DeploymentException
ServiceUnit
addEndpoint in interface ServiceUnitjavax.jbi.management.DeploymentException
public void removeEndpoint(Endpoint endpoint)
throws javax.jbi.management.DeploymentException
ServiceUnit
removeEndpoint in interface ServiceUnitjavax.jbi.management.DeploymentExceptionpublic Endpoint getEndpoint(java.lang.String key)
public java.lang.ClassLoader getConfigurationClassLoader()
ServiceUnit
getConfigurationClassLoader in interface ServiceUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||