|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jmx.AbstractServiceClient
org.ow2.petals.jmx.DeploymentServiceClient
public final class DeploymentServiceClient
Client API of the JMX deployment service.
| Nested Class Summary | |
|---|---|
static class |
DeploymentServiceClient.State
Service assembly states |
| Field Summary |
|---|
| Fields inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
JMX_FIELD_NAME, JMX_FIELD_TYPE, JMX_SERVICE_TYPE, mbeanName, mBeanServerConnection, petalsDomain |
| Constructor Summary | |
|---|---|
DeploymentServiceClient(java.lang.String petalsDomain,
javax.management.MBeanServerConnection mBeanServerConnection)
Creates a new instance of DeploymentServiceClient |
|
| Method Summary | |
|---|---|
java.lang.String |
deploy(java.net.URL packageURL)
Deploy a service assembly. |
java.lang.Boolean |
forceUndeploy(java.lang.String serviceAssemblyName)
Force the undeployment of the service assembly. |
java.lang.String[] |
getDeployedServiceAssemblies()
Get deployed service assemblies. |
java.lang.String[] |
getDeployedServiceAssembliesForComponent(java.lang.String componentName)
Get service assemblies containing service units running on a component. |
java.lang.String |
getServiceAssemblyDescriptor(java.lang.String serviceAssemblyName)
Get the service assembly descriptor. |
java.lang.String[] |
getServiceUnitForServiceAssembly(java.lang.String serviceAssemblyName)
Get Service Unit embedded in the given Service Assembly. |
java.lang.String |
getState(java.lang.String serviceAssemblyName)
Get the current state of a JBI service assembly. |
boolean |
isServiceAssemblyDeployed(java.lang.String serviceAssembly)
Check if a service assembly is deployed. |
java.lang.String |
shutdown(java.lang.String serviceAssemblyName)
Shutdown a service assembly. |
java.lang.String[] |
shutdownAllServiceAssemblies()
Shutdown all service assemblies. |
java.lang.String |
start(java.lang.String serviceAssemblyName)
Start a service assembly. |
java.lang.String[] |
startAllServiceAssemblies()
Start all service assemblies. |
java.lang.String |
stop(java.lang.String serviceAssemblyName)
Stop a service assembly. |
java.lang.String[] |
stopAllServiceAssemblies()
Stop all service assemblies. |
java.lang.String |
undeploy(java.lang.String serviceAssemblyName)
Undeploy a service assembly. |
java.lang.String[] |
undeployAllServiceAssemblies(boolean force)
Undeploy all service assemblies. |
| Methods inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
getAttribute, getAttribute, performAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeploymentServiceClient(java.lang.String petalsDomain,
javax.management.MBeanServerConnection mBeanServerConnection)
throws DeploymentServiceDoesNotExistException,
DeploymentServiceErrorException
DeploymentServiceClient
petalsDomain - mBeanServerConnection -
DeploymentServiceDoesNotExistException
DeploymentServiceErrorException| Method Detail |
|---|
public java.lang.String deploy(java.net.URL packageURL)
throws DeploymentServiceErrorException
packageURL -
PerformActionErrorException
DeploymentServiceErrorExceptionDeploymentServiceMBean.deploy(String)
public java.lang.Boolean forceUndeploy(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
serviceAssemblyName - service assembly identifier
PerformActionErrorException
DeploymentServiceErrorExceptionDeploymentServiceMBean.undeploy(String)
public java.lang.String[] getDeployedServiceAssemblies()
throws DeploymentServiceErrorException
DeploymentServiceErrorException
public java.lang.String[] getDeployedServiceAssembliesForComponent(java.lang.String componentName)
throws DeploymentServiceErrorException
componentName -
PerformActionErrorException
DeploymentServiceErrorException
public java.lang.String getServiceAssemblyDescriptor(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
DeploymentServiceErrorException
public java.lang.String[] getServiceUnitForServiceAssembly(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
serviceAssemblyName -
DeploymentServiceErrorException
public java.lang.String getState(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
serviceAssemblyName - Service assembly identifier.
PerformActionErrorException
DeploymentServiceErrorException
public boolean isServiceAssemblyDeployed(java.lang.String serviceAssembly)
throws DeploymentServiceErrorException
serviceAssembly - The service assembly identifier
serviceAssembly is null.
DeploymentServiceErrorException
public java.lang.String shutdown(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
serviceAssemblyName - service assembly identifier
PerformActionErrorException
DeploymentServiceErrorExceptionDeploymentServiceMBean.shutDown(String)
public java.lang.String[] shutdownAllServiceAssemblies()
throws DeploymentServiceErrorException
PerformActionErrorException
DeploymentServiceErrorException
public java.lang.String start(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
serviceAssemblyName - service assembly identifier
PerformActionErrorException
DeploymentServiceErrorExceptionDeploymentServiceMBean.start(String)
public java.lang.String[] startAllServiceAssemblies()
throws DeploymentServiceErrorException
PerformActionErrorException
DeploymentServiceErrorException
public java.lang.String stop(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
serviceAssemblyName - service assembly identifier
PerformActionErrorException
DeploymentServiceErrorExceptionDeploymentServiceMBean.stop(String)
public java.lang.String[] stopAllServiceAssemblies()
throws DeploymentServiceErrorException
PerformActionErrorException
DeploymentServiceErrorException
public java.lang.String undeploy(java.lang.String serviceAssemblyName)
throws DeploymentServiceErrorException
serviceAssemblyName - service assembly identifier
DeploymentServiceErrorExceptionDeploymentServiceMBean.undeploy(String)
public java.lang.String[] undeployAllServiceAssemblies(boolean force)
throws DeploymentServiceErrorException
PerformActionErrorException
DeploymentServiceErrorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||