|
||||||||||
| 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. |
java.lang.ClassLoader |
getConfigurationClassLoader()
Retrieve this service unit specific classloader. |
java.lang.String |
getCurrentState()
Retrieve the state of this service unit. |
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 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 |
|---|
java.lang.String getName()
java.lang.String getRootPath()
ServiceMixComponent getComponent()
java.util.Collection<Endpoint> getEndpoints()
java.lang.ClassLoader getConfigurationClassLoader()
java.lang.String getCurrentState()
void init()
throws java.lang.Exception
java.lang.ExceptionEndpoint.start()
void start()
throws java.lang.Exception
java.lang.ExceptionEndpoint.start()
void stop()
throws java.lang.Exception
java.lang.ExceptionEndpoint.stop()
void shutDown()
throws java.lang.Exception
java.lang.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 | |||||||||