public interface ServiceLifecycleManager
Modifier and Type | Method and Description |
---|---|
void |
decommission(String name)
Decommision the given service by calling Startable.stop()
and Disposable.dispose().
|
RoleEntry[] |
getRoleEntries()
Get a list of all RoleEntries.
|
RoleEntry |
getRoleEntry(String name)
Get a RoleEntryImpl for a given service
|
void |
reconfigure(String[] names)
Reconfigures a set of services by calling Suspendable.suspend(),
Reconfigurable.reconfigure() and Suspendable.resume().
|
RoleEntry getRoleEntry(String name) throws org.apache.avalon.framework.service.ServiceException
name
- the name of the service componentorg.apache.avalon.framework.service.ServiceException
- the service was not foundRoleEntry[] getRoleEntries()
void reconfigure(String[] names) throws org.apache.avalon.framework.service.ServiceException, org.apache.avalon.framework.configuration.ConfigurationException
names
- the set of services to be reconfiguredorg.apache.avalon.framework.service.ServiceException
- one of the service was not foundorg.apache.avalon.framework.configuration.ConfigurationException
- the reconfiguration failedvoid decommission(String name) throws org.apache.avalon.framework.service.ServiceException
name
- the name of the serviceorg.apache.avalon.framework.service.ServiceException
- the service was not foundCopyright © 2004–1970 The Apache Software Foundation. All rights reserved.