Interface PlatformServiceContainer
-
- All Known Implementing Classes:
MBeanServiceContainer
public interface PlatformServiceContainer
- Author:
- Daniel Meyer, Roman Smirnov, Ronny Bräunlich
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PlatformServiceContainer.ServiceType
A ServiceType is a collection of services that share a common name prefix.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeploymentOperation.DeploymentOperationBuilder
createDeploymentOperation(java.lang.String name)
DeploymentOperation.DeploymentOperationBuilder
createUndeploymentOperation(java.lang.String name)
void
executeDeploymentOperation(DeploymentOperation operation)
<S> S
getService(PlatformServiceContainer.ServiceType type, java.lang.String localName)
get a specific service by name or null if no such Service exists.java.util.Set<java.lang.String>
getServiceNames(PlatformServiceContainer.ServiceType type)
<S> java.util.List<PlatformService<S>>
getServicesByType(PlatformServiceContainer.ServiceType type)
<S> S
getServiceValue(PlatformServiceContainer.ServiceType type, java.lang.String localName)
get the service value for a specific service by name or null if no such Service exists.<S> java.util.List<S>
getServiceValuesByType(PlatformServiceContainer.ServiceType type)
<S> void
startService(java.lang.String serviceName, PlatformService<S> service)
<S> void
startService(PlatformServiceContainer.ServiceType serviceType, java.lang.String localName, PlatformService<S> service)
void
stopService(java.lang.String serviceName)
void
stopService(PlatformServiceContainer.ServiceType serviceType, java.lang.String localName)
-
-
-
Method Detail
-
startService
<S> void startService(PlatformServiceContainer.ServiceType serviceType, java.lang.String localName, PlatformService<S> service)
-
startService
<S> void startService(java.lang.String serviceName, PlatformService<S> service)
-
stopService
void stopService(PlatformServiceContainer.ServiceType serviceType, java.lang.String localName)
-
stopService
void stopService(java.lang.String serviceName)
-
createDeploymentOperation
DeploymentOperation.DeploymentOperationBuilder createDeploymentOperation(java.lang.String name)
-
createUndeploymentOperation
DeploymentOperation.DeploymentOperationBuilder createUndeploymentOperation(java.lang.String name)
-
getService
<S> S getService(PlatformServiceContainer.ServiceType type, java.lang.String localName)
get a specific service by name or null if no such Service exists.
-
getServiceValue
<S> S getServiceValue(PlatformServiceContainer.ServiceType type, java.lang.String localName)
get the service value for a specific service by name or null if no such Service exists.
-
getServicesByType
<S> java.util.List<PlatformService<S>> getServicesByType(PlatformServiceContainer.ServiceType type)
- Returns:
- all services for a specific
PlatformServiceContainer.ServiceType
-
getServiceNames
java.util.Set<java.lang.String> getServiceNames(PlatformServiceContainer.ServiceType type)
- Returns:
- the service names (
ObjectName
) for all services for a given type
-
getServiceValuesByType
<S> java.util.List<S> getServiceValuesByType(PlatformServiceContainer.ServiceType type)
- Returns:
- the values of all services for a specific
PlatformServiceContainer.ServiceType
-
executeDeploymentOperation
void executeDeploymentOperation(DeploymentOperation operation)
-
-