|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ServiceName | |
---|---|
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 ServiceName in org.apache.xbean.kernel |
---|
Classes in org.apache.xbean.kernel that implement ServiceName | |
---|---|
class |
StringServiceName
A simple service name containing a single String. |
Methods in org.apache.xbean.kernel that return ServiceName | |
---|---|
ServiceName |
UnsatisfiedConditionsException.getServiceName()
Gets the name of the service that has unsatisfied conditions. |
ServiceName |
InvalidServiceTypeException.getServiceName()
Gets the name of the service that returned an object of the wrong type. |
ServiceName |
IllegalServiceStateException.getServiceName()
Gets the name of the service that caused this exception. |
ServiceName |
ServiceAlreadyExistsException.getServiceName()
Gets the name of the service that caused this exception. |
ServiceName |
KernelOperationInterruptedException.getServiceName()
Gets the name of the service for which the operation was interrupted. |
ServiceName |
ForcedStopException.getServiceName()
Gets the name of the service that is to be forceably stopped. |
ServiceName |
ServiceContext.getServiceName()
Gets the unique name of the service in the kernel. |
ServiceName |
ServiceRegistrationException.getServiceName()
Gets the name of the service that had a registration problem. |
ServiceName |
UnregisterServiceException.getServiceName()
Gets the name of the service that is to be unregistered. |
ServiceName |
KernelOperationTimoutException.getServiceName()
Gets the name of the service for which the operation timed out. |
ServiceName |
ServiceEvent.getServiceName()
Gets the name of the service. |
ServiceName |
ServiceConditionContext.getServiceName()
Gets the unique name of the service. |
ServiceName |
ServiceNotFoundException.getServiceName()
Gets the name of the service that was not found. |
Methods in org.apache.xbean.kernel with parameters of type ServiceName | |
---|---|
void |
Kernel.addServiceMonitor(ServiceMonitor serviceMonitor,
ServiceName serviceName)
Adds a service monitor for a specific service. |
ClassLoader |
Kernel.getClassLoaderFor(ServiceName serviceName)
Gets the class loader associated with the specifed service. |
Object |
Kernel.getService(ServiceName serviceName)
Gets the service registered under the specified name. |
ServiceFactory |
Kernel.getServiceFactory(ServiceName serviceName)
Gets the service factory registered under the specified name. |
long |
Kernel.getServiceStartTime(ServiceName serviceName)
Gets the time the specified service entered the RUNNING state since the epoch (January 1, 1970, 00:00:00) in milliseconds. |
ServiceState |
Kernel.getServiceState(ServiceName serviceName)
Gets the ServiceState of the specified service. |
boolean |
Kernel.isRegistered(ServiceName serviceName)
Determines if there is a service registered under the specified name. |
boolean |
Kernel.isServiceEnabled(ServiceName serviceName)
Determines if the service can be instantiated in a kernel. |
void |
Kernel.registerService(ServiceName serviceName,
ServiceFactory serviceFactory)
Registers a service with this kernel. |
void |
Kernel.setServiceEnabled(ServiceName serviceName,
boolean enabled)
Sets the enabled status of a service. |
void |
StartStrategy.startError(ServiceName serviceName,
Throwable startError)
Handle the start error. |
void |
Kernel.startService(ServiceName serviceName)
Immediately starts the service using the SYNCHRONOUS start strategy. |
void |
Kernel.startService(ServiceName serviceName,
StartStrategy startStrategy)
Immediately starts the service using the specified start strategy. |
void |
Kernel.startServiceRecursive(ServiceName serviceName)
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName) method. |
void |
Kernel.startServiceRecursive(ServiceName serviceName,
StartStrategy startStrategy)
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName, StartStrategy) method. |
void |
Kernel.stopService(ServiceName serviceName)
Immediately stops the service using the SYNCHRONOUS stop strategy. |
void |
Kernel.stopService(ServiceName serviceName,
StopStrategy stopStrategy)
Immediately stops the service using the specified stop strategy. |
void |
Kernel.unregisterService(ServiceName serviceName)
Unregisters a service from this kernel. |
void |
Kernel.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Unregisters a service from this kernel. |
boolean |
StartStrategy.waitForUnsatisfiedConditions(ServiceName serviceName,
Set conditions)
Determines if the kernel should wait for the unsatified conditions to be satisfied. |
boolean |
StopStrategy.waitForUnsatisfiedConditions(ServiceName serviceName,
Set conditions)
Determines if the kernel should wait for the unsatified conditions to be satisfied. |
Constructors in org.apache.xbean.kernel with parameters of type ServiceName | |
---|---|
ForcedStopException(ServiceName serviceName,
Set unsatisfiedConditions)
Creates a ForcedStopException for the specified service name. |
|
IllegalServiceStateException(String message,
ServiceName serviceName)
Creates an IllegalServiceStateException. |
|
InvalidServiceTypeException(ServiceName serviceName,
Class expectedType,
Class serviceType)
Creates an InvalidServiceType caused by the service with the specified name, which returned an object from the createService method of the specified type that is not an instance of the expected type. |
|
KernelOperationInterruptedException(InterruptedException cause,
ServiceName serviceName,
String operationName)
Created a KernelOperationInterruptedException for the specified operation on the specified service. |
|
KernelOperationInterruptedException(String message,
InterruptedException cause,
ServiceName serviceName,
String operationName)
Created a KernelOperationInterruptedException with a custom message. |
|
KernelOperationTimoutException(ServiceName serviceName,
String operationName)
Created a KernelOperationTimoutException for the specified operation on the specified service. |
|
KernelOperationTimoutException(String message,
ServiceName serviceName,
String operationName)
Created a KernelOperationTimoutException using the specified custom message. |
|
RunningServiceCondition(ServiceName dependency,
boolean ownedRelationship,
boolean stopOnServiceShutdown)
Creates a condition that requires the specified service be in the RUNNING state to be satisfied. |
|
ServiceAlreadyExistsException(ServiceName serviceName)
Creates a ServiceAlreadyExistsException for the specified service name. |
|
ServiceEvent(long eventId,
Kernel kernel,
ServiceName serviceName,
ServiceFactory serviceFactory,
ClassLoader classLoader,
Object service,
Throwable cause,
Set unsatisfiedConditions)
Creates a service event. |
|
ServiceNotFoundException(ServiceName serviceName)
Creates a ServiceNotFoundException for the specified service name. |
|
ServiceRegistrationException(ServiceName serviceName,
Throwable cause)
Creates a ServiceRegistrationException for the specified service caused by the specified Throwable. |
|
StoppedServiceCondition(ServiceName dependency)
Creates a condition that requires the specified service be in the STOPPED state to be satisfied. |
|
UnregisterServiceException(ServiceName serviceName,
Throwable cause)
Creates a UnregisterServiceException for the specified service name. |
|
UnsatisfiedConditionsException(String message,
ServiceName serviceName,
Set unsatisfiedConditions)
Creates an UnsatisfiedConditionsException for the specified service and unsatisfied conditions. |
Uses of ServiceName in org.apache.xbean.kernel.standard |
---|
Methods in org.apache.xbean.kernel.standard that return ServiceName | |
---|---|
ServiceName |
ServiceManager.getServiceName()
Gets the unique name of this service in the kernel. |
ServiceName |
StandardServiceConditionContext.getServiceName()
Gets the unique name of the service. |
ServiceName |
StandardServiceContext.getServiceName()
Gets the unique name of the service in the kernel. |
Methods in org.apache.xbean.kernel.standard with parameters of type ServiceName | |
---|---|
void |
ServiceMonitorBroadcaster.addServiceMonitor(ServiceMonitor serviceMonitor,
ServiceName serviceName)
Adds a service monitor for a specific service, or if the specified service name is null, a global monitor. |
void |
StandardKernel.addServiceMonitor(ServiceMonitor serviceMonitor,
ServiceName serviceName)
Adds a service monitor for a specific service. |
ServiceManager |
ServiceManagerFactory.createServiceManager(long serviceId,
ServiceName serviceName,
ServiceFactory serviceFactory)
Creates a ServiceManager. |
ClassLoader |
StandardKernel.getClassLoaderFor(ServiceName serviceName)
Gets the class loader associated with the specifed service. |
Object |
StandardKernel.getService(ServiceName serviceName)
Gets the service registered under the specified name. |
ServiceFactory |
StandardKernel.getServiceFactory(ServiceName serviceName)
Gets the service factory registered under the specified name. |
ServiceManager |
ServiceManagerRegistry.getServiceManager(ServiceName serviceName)
Gets the service manager registered under the specified name. |
long |
StandardKernel.getServiceStartTime(ServiceName serviceName)
Gets the time the specified service entered the RUNNING state since the epoch (January 1, 1970, 00:00:00) in milliseconds. |
ServiceState |
StandardKernel.getServiceState(ServiceName serviceName)
Gets the ServiceState of the specified service. |
boolean |
StandardKernel.isRegistered(ServiceName serviceName)
Determines if there is a service registered under the specified name. |
boolean |
ServiceManagerRegistry.isRegistered(ServiceName serviceName)
Determines if there is a service registered under the specified name. |
boolean |
StandardKernel.isServiceEnabled(ServiceName serviceName)
Determines if the service can be instantiated in a kernel. |
void |
StandardKernel.registerService(ServiceName serviceName,
ServiceFactory serviceFactory)
Registers a service with this kernel. |
void |
ServiceManagerRegistry.registerService(ServiceName serviceName,
ServiceFactory serviceFactory)
Creates a ServiceManager and registers it under the specified name. |
void |
StandardKernel.setServiceEnabled(ServiceName serviceName,
boolean enabled)
Sets the enabled status of a service. |
void |
StandardKernel.startService(ServiceName serviceName)
Immediately starts the service using the SYNCHRONOUS start strategy. |
void |
StandardKernel.startService(ServiceName serviceName,
StartStrategy startStrategy)
Immediately starts the service using the specified start strategy. |
void |
StandardKernel.startServiceRecursive(ServiceName serviceName)
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName) method. |
void |
StandardKernel.startServiceRecursive(ServiceName serviceName,
StartStrategy startStrategy)
Immediately starts the service, and if the start ultimately completes successfully, all services owned by the specified service, all services that are owned by those services, and so on, will be started using the startServiceRecursive(ServiceName, StartStrategy) method. |
void |
StandardKernel.stopService(ServiceName serviceName)
Immediately stops the service using the SYNCHRONOUS stop strategy. |
void |
StandardKernel.stopService(ServiceName serviceName,
StopStrategy stopStrategy)
Immediately stops the service using the specified stop strategy. |
void |
StandardKernel.unregisterService(ServiceName serviceName)
Unregisters a service from this kernel. |
void |
StandardKernel.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Unregisters a service from this kernel. |
void |
ServiceManagerRegistry.unregisterService(ServiceName serviceName,
StopStrategy stopStrategy)
Stops and destorys the ServiceManager and then unregisters it. |
Constructors in org.apache.xbean.kernel.standard with parameters of type ServiceName | |
---|---|
AggregateCondition(Kernel kernel,
ServiceName serviceName,
ClassLoader classLoader,
Lock lock,
Set conditions)
Creates an aggregate condition. |
|
NonRestartableStopCondition(Kernel kernel,
ServiceName serviceName,
ClassLoader classLoader,
Lock lock,
ServiceFactory serviceFactory)
Creates a NonRestartableStopCondition. |
|
ServiceManager(Kernel kernel,
long serviceId,
ServiceName serviceName,
ServiceFactory serviceFactory,
ServiceMonitor serviceMonitor,
long timeoutDuration,
TimeUnit timeoutUnits)
Creates a service manager for a single service. |
|
StandardServiceConditionContext(Kernel kernel,
ServiceName serviceName,
ClassLoader classLoader,
Lock lock,
Condition condition)
Creates a service context for the specified service. |
|
StandardServiceContext(Kernel kernel,
ServiceName serviceName,
ClassLoader classLoader)
Creates the standard service context implementation. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |