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.
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
Method Summary
 void registerComponent(IShutDownable shutdown)
          Registers a shutdownable component
 void registerComponent(IShutDownable shutdown, ITicket ticket)
          Registers a shutdownable component
 void removeComponent(IShutDownable shutdown)
          Removes a shutdownable component
 void removeComponent(IShutDownable shutdown, ITicket ticket)
          Removes a shutdownable component
 void shutdown(ITicket ticket)
          Makes a controlled shutdown which means the following:
1.
 
Methods inherited from interface org.jwarp.service.IService
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, start, suspend
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
The service's type name.
Method Detail

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 component
ticket - 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 component
ticket - 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

©   O R C A   S y s t e m s