|
||||||||||
| 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 Map<String,Endpoint> |
endpoints
|
protected String |
name
|
protected String |
rootPath
|
protected 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. |
ClassLoader |
getConfigurationClassLoader()
Retrieve this service unit specific classloader. |
String |
getCurrentState()
Retrieve the state of this service unit. |
Endpoint |
getEndpoint(String key)
|
Collection<Endpoint> |
getEndpoints()
Retrieves the list of deployed endpoints. |
String |
getName()
Retrieves the name of this service unit. |
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(String name)
|
void |
setRootPath(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 String name
protected String rootPath
protected String status
protected Map<String,Endpoint> endpoints
| Constructor Detail |
|---|
public DefaultServiceUnit()
public DefaultServiceUnit(ServiceMixComponent component)
| Method Detail |
|---|
public void init()
throws Exception
ServiceUnit
init in interface ServiceUnitExceptionEndpoint.start()
public void start()
throws Exception
ServiceUnit
start in interface ServiceUnitExceptionEndpoint.start()
public void stop()
throws Exception
ServiceUnit
stop in interface ServiceUnitExceptionEndpoint.stop()
public void shutDown()
throws Exception
ServiceUnit
shutDown in interface ServiceUnitExceptionEndpoint.deactivate()public String getCurrentState()
ServiceUnit
getCurrentState in interface ServiceUnitpublic String getName()
ServiceUnit
getName in interface ServiceUnitpublic void setName(String name)
public String getRootPath()
ServiceUnit
getRootPath in interface ServiceUnitpublic void setRootPath(String rootPath)
public ServiceMixComponent getComponent()
ServiceUnit
getComponent in interface ServiceUnitpublic void setComponent(ServiceMixComponent component)
component - The component to set.public 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(String key)
public ClassLoader getConfigurationClassLoader()
ServiceUnit
getConfigurationClassLoader in interface ServiceUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||