|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use StopStrategy | |
org.apache.xbean.kernel | Defines the kernel interface for managing services and interfaces the kernel uses to interact with the services. |
org.apache.xbean.kernel.standard | Provides the standard kernel implementation. |
Uses of StopStrategy in org.apache.xbean.kernel |
Fields in org.apache.xbean.kernel declared as StopStrategy | |
static StopStrategy |
StopStrategies.SYNCHRONOUS
This strategy attempts to immedately stop the service. |
static StopStrategy |
StopStrategies.ASYNCHRONOUS
This strategy attempts to stop the service asynchronously. |
static StopStrategy |
StopStrategies.BLOCK
This strategy wait until the service stops. |
static StopStrategy |
StopStrategies.FORCE
This strategy forceable stops the service. |
Methods in org.apache.xbean.kernel with parameters of type StopStrategy | |
void |
Kernel.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Unregisters a service from this kernel. |
void |
Kernel.stopService(ServiceName serviceName,
StopStrategy stopStrategy)
Immediately stops the service using the specified stop strategy. |
Uses of StopStrategy in org.apache.xbean.kernel.standard |
Methods in org.apache.xbean.kernel.standard with parameters of type StopStrategy | |
void |
ServiceManager.destroy(StopStrategy stopStrategy)
Attempts to stop and destroy the service. |
boolean |
ServiceManager.stop(StopStrategy stopStrategy)
Attempts to stop the service. |
void |
StandardKernel.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Unregisters a service from this kernel. The kernel will attempt to stop the service using the specified stop strategy, but if it can not stop the service a ServiceRegistrationException will be thrown containing either an UnsatisfiedConditionsException or a IllegalServiceStateException. |
void |
StandardKernel.stopService(ServiceName serviceName,
StopStrategy stopStrategy)
Immediately stops the service using the specified stop strategy. If a stop condition can not be immediately satisfied, an UnsatisfiedConditionsException will be thrown. If a service already in the STOPPED state, this method is a noop. If the service is not restartable, this method only attempts to satify the stop conditions. This is useful for stopping all dependent services of a non-restartable service before unregistering the service. |
void |
ServiceManagerRegistry.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Stops and destorys the ServiceManager and then unregisters it. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |