org.jwarp.service.system
Interface IShutDownService
- All Superinterfaces:
- IConfigurable, IExceptionProvider, IService
- public interface IShutDownService
- extends IService
This is the system's shutdown service. It should be installed and started by default (by the system service).
|
Field Summary |
static java.lang.String |
SERVICE_TYPE
The service's type name. |
| Methods inherited from interface org.jwarp.service.IService |
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, start, suspend |
SERVICE_TYPE
public static final java.lang.String SERVICE_TYPE
- The service's type name.
registerComponent
public void registerComponent(IShutDownable shutdown)
- Registers a shutdownable component
- Parameters:
comp - The component
registerComponent
public void registerComponent(IShutDownable shutdown,
ITicket ticket)
- Registers a shutdownable component
- Parameters:
comp - The componentticket - The owner
removeComponent
public void removeComponent(IShutDownable shutdown)
- Removes a shutdownable component
- Parameters:
comp - The component
removeComponent
public void removeComponent(IShutDownable shutdown,
ITicket ticket)
- Removes a shutdownable component
- Parameters:
comp - The componentticket - The owner
shutdown
public void shutdown(ITicket ticket)
- Makes a controlled shutdown which means the following:
1. Call the shutdown method for each subcomponent
2. Run System.gc 3. Run System.finalize
- Specified by:
shutdown in interface IService
- Parameters:
ticket - The administrators or system ticket