|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeploymentServiceMBean
The deployment service MBean allows administrative tools to manage service assembly deployments. The tasks supported are:
| Field Summary | |
|---|---|
static java.lang.String |
SHUTDOWN
The service assembly has been deployed, or shutdown |
static java.lang.String |
STARTED
The service assembly is started. |
static java.lang.String |
STOPPED
The service assembly is stopped. |
| Method Summary | |
|---|---|
boolean |
canDeployToComponent(java.lang.String componentName)
Returns true if the the given component accepts the
deployment of service units. |
java.lang.String |
deploy(java.lang.String serviceAssemblyZipUrl)
TODO deploy verify that all Service units are present in the package and that all targeted components are installed in the JBI System TODO check duplicate service units as describe in spec section 6.6 TODO deploy add the result of deploy method call on su to the management message "result" TODO deploy verify deployment success before registration TODO deploy returning xml result instead of SA name Deploys the given Service Assembly to the JBI environment. |
java.lang.String[] |
getComponentsForDeployedServiceAssembly(java.lang.String serviceAssemblyName)
Returns an array of component names, where for each the given assembly contains a service unit for the component. |
java.lang.String[] |
getDeployedServiceAssemblies()
Returns a list of Service Assemblies deployed to the JBI environment. |
java.lang.String[] |
getDeployedServiceAssembliesForComponent(java.lang.String componentName)
Returns an array of Service Assembly names, where each assembly contains Service Units for the given component. |
java.lang.String[] |
getDeployedServiceUnitList(java.lang.String componentName)
Returns an array of service unit names that are currently deployed to the named component. |
java.lang.String |
getServiceAssemblyDescriptor(java.lang.String serviceAssemblyName)
Returns the deployment descriptor of the Service Assembly that was deployed to the JBI enviroment, serialized to a String. |
java.lang.String |
getState(java.lang.String serviceAssemblyName)
Get the running state of a service assembly. |
boolean |
isDeployedServiceUnit(java.lang.String componentName,
java.lang.String serviceUnitName)
Queries if the named Service Unit is currently deployed to the named component. |
java.lang.String |
shutDown(java.lang.String serviceAssemblyName)
TODO shutDown returning xml result instead of SA name Shut down the service assembly. |
java.lang.String |
start(java.lang.String serviceAssemblyName)
TODO start returning xml result instead of SA name Start the service assembly. |
java.lang.String |
stop(java.lang.String serviceAssemblyName)
TODO stop returning xml result instead of SA name Stop the service assembly. |
java.lang.String |
undeploy(java.lang.String serviceAssemblyName)
TODO undeploy returning xml result instead of SA name Undeploys the given Service Assembly from the JBI environment. |
| Field Detail |
|---|
static final java.lang.String SHUTDOWN
static final java.lang.String STARTED
static final java.lang.String STOPPED
| Method Detail |
|---|
boolean canDeployToComponent(java.lang.String componentName)
true if the the given component accepts the
deployment of service units. This is used by admin tools to determine
which components can be named in service assembly deployment descriptors.
componentName - name of the component; must be non-null and non-empty
true if the named component accepts deployments;
false if the named component does not accept
deployments or it does not exist
java.lang.String deploy(java.lang.String serviceAssemblyZipUrl)
throws java.lang.Exception
Note that the implementation must not automatically start the service
assembly after deployment; it must wait for the
start(String) method to be invoked by the
administrative tool.
serviceAssemblyZipUrl - String containing the location URL of the Service Assembly ZIP
file; must be non-null, non-empty, and a legal URL.
java.lang.Exception - if complete deployment fails
java.lang.String[] getComponentsForDeployedServiceAssembly(java.lang.String serviceAssemblyName)
throws java.lang.Exception
serviceAssemblyName - the service assembly to be queried; must be non-null and
non-empty
java.lang.Exception - if a processing error occurs
java.lang.String[] getDeployedServiceAssemblies()
throws java.lang.Exception
java.lang.Exception - if a processing error occurs
java.lang.String[] getDeployedServiceAssembliesForComponent(java.lang.String componentName)
throws java.lang.Exception
componentName - name of the component to query; must be non-null and non-empty
java.lang.Exception - if a processing error occurs
java.lang.String[] getDeployedServiceUnitList(java.lang.String componentName)
throws java.lang.Exception
componentName - the name of the component to query; must be non-null and
non-empty
java.lang.Exception - if a processing error occurs
java.lang.String getServiceAssemblyDescriptor(java.lang.String serviceAssemblyName)
throws java.lang.Exception
String.
serviceAssemblyName - name of the service assembly to be queried; must be non-null
and non-empty
java.lang.Exception - if a processing error occurs getState(String)
java.lang.String getState(java.lang.String serviceAssemblyName)
throws java.lang.Exception
SHUTDOWN,
STOPPED,
STARTED.
serviceAssemblyName - name of the assembly to query; must be non-null and non-empty
SHUTDOWN,
STOPPED, or
STARTED.
java.lang.Exception
boolean isDeployedServiceUnit(java.lang.String componentName,
java.lang.String serviceUnitName)
throws java.lang.Exception
componentName - name of the component to query; must be non-null and non-emptyserviceUnitName - name of the subject service unit; must be non-null and
non-empty
true if the named service unit is currently
deployed to the named component
java.lang.Exception
java.lang.String shutDown(java.lang.String serviceAssemblyName)
throws java.lang.Exception
SHUTDOWN state.
serviceAssemblyName - name of the assembly to be shut down; must be non-null and
non-empty
java.lang.Exception - if there is no such assembly
java.lang.Exception - if the assembly fails to shut down
java.lang.String start(java.lang.String serviceAssemblyName)
throws java.lang.Exception
STARTED state.
serviceAssemblyName - name of the assembly to be started; must be non-null and
non-empty
java.lang.Exception - if there is no such assembly
java.lang.Exception - if the assembly fails to start
java.lang.String stop(java.lang.String serviceAssemblyName)
throws java.lang.Exception
STOPPED state.
serviceAssemblyName - name of the assembly to be stopped; must be non-null and
non-empty
java.lang.Exception - if there is no such assembly
java.lang.Exception - if the assembly fails to stop
java.lang.String undeploy(java.lang.String serviceAssemblyName)
throws java.lang.Exception
serviceAssemblyName - name of the Service Assembly that is to be undeployed; must be
non-null and non-empty
java.lang.Exception - if compelete undeployment fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||