|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceUnit
This interface defines the lifecycle and needed methods to a collection of endpoints grouped into a service unit.
| Method Summary | |
|---|---|
void |
addEndpoint(Endpoint ep)
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. |
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 ep)
Removes an endpoint from this service unit. |
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. |
| Method Detail |
|---|
String getName()
String getRootPath()
ServiceMixComponent getComponent()
Collection<Endpoint> getEndpoints()
ClassLoader getConfigurationClassLoader()
String getCurrentState()
void init()
throws Exception
ExceptionEndpoint.start()
void start()
throws Exception
ExceptionEndpoint.start()
void stop()
throws Exception
ExceptionEndpoint.stop()
void shutDown()
throws Exception
ExceptionEndpoint.deactivate()
void addEndpoint(Endpoint ep)
throws javax.jbi.management.DeploymentException
ep -
javax.jbi.management.DeploymentException
void removeEndpoint(Endpoint ep)
throws javax.jbi.management.DeploymentException
ep -
javax.jbi.management.DeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||