public interface DeploymentServiceMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
SHUTDOWN
The service assembly has been deployed, or shutdown
|
static String |
STARTED
The service assembly is started.
|
static String |
STOPPED
The service assembly is stopped.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDeployToComponent(String componentName)
Returns
true if the the given component accepts the
deployment of service units. |
String |
deploy(String serviceAssemblyZipUrl)
Deploys the given Service Assembly to the JBI environment.
|
String[] |
getComponentsForDeployedServiceAssembly(String serviceAssemblyName)
Returns an array of component names, where for each the given assembly
contains a service unit for the component.
|
String[] |
getDeployedServiceAssemblies()
Returns a list of Service Assemblies deployed to the JBI environment.
|
String[] |
getDeployedServiceAssembliesForComponent(String componentName)
Returns an array of Service Assembly names, where each assembly contains
Service Units for the given component.
|
String[] |
getDeployedServiceUnitList(String componentName)
Returns an array of service unit names that are currently deployed to
the named component.
|
String |
getServiceAssemblyDescriptor(String serviceAssemblyName)
Returns the deployment descriptor of the Service Assembly that was
deployed to the JBI enviroment, serialized to a
String. |
String |
getState(String serviceAssemblyName)
Get the running state of a service assembly.
|
boolean |
isDeployedServiceUnit(String componentName,
String serviceUnitName)
Queries if the named Service Unit is currently deployed to the named
component.
|
String |
shutDown(String serviceAssemblyName)
Shut down the service assembly.
|
String |
start(String serviceAssemblyName)
Start the service assembly.
|
String |
stop(String serviceAssemblyName)
Stop the service assembly.
|
String |
undeploy(String serviceAssemblyName)
Undeploys the given Service Assembly from the JBI environment.
|
static final String SHUTDOWN
static final String STOPPED
static final String STARTED
boolean canDeployToComponent(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-emptytrue if the named component accepts deployments;
false if the named component does not accept
deployments or it does not existString deploy(String serviceAssemblyZipUrl) throws 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 URLException - if complete deployment failsString undeploy(String serviceAssemblyName) throws Exception
serviceAssemblyName - name of the Service Assembly that is to be
undeployed; must be non-null and non-emptyException - if compelete undeployment failsString[] getDeployedServiceUnitList(String componentName) throws Exception
componentName - the name of the component to query; must be
non-null and non-emptyException - if a processing error occursString[] getDeployedServiceAssemblies() throws Exception
Exception - if a processing error occursString getServiceAssemblyDescriptor(String serviceAssemblyName) throws Exception
String.serviceAssemblyName - name of the service assembly to be queried;
must be non-null and non-emptyException - if a processing error occursString[] getDeployedServiceAssembliesForComponent(String componentName) throws Exception
componentName - name of the component to query; must be non-null
and non-emptyException - if a processing error occursString[] getComponentsForDeployedServiceAssembly(String serviceAssemblyName) throws Exception
serviceAssemblyName - the service assembly to be queried; must be
non-null and non-emptyException - if a processing error occursboolean isDeployedServiceUnit(String componentName, String serviceUnitName) throws 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-emptytrue if the named service unit is currently deployed
to the named componentExceptionString start(String serviceAssemblyName) throws Exception
STARTED state.serviceAssemblyName - name of the assembly to be started; must be
non-null and non-emptyException - if there is no such assemblyException - if the assembly fails to startString stop(String serviceAssemblyName) throws Exception
STOPPED state.serviceAssemblyName - name of the assembly to be stopped; must be
non-null and non-emptyException - if there is no such assemblyException - if the assembly fails to stopString shutDown(String serviceAssemblyName) throws Exception
SHUTDOWN state.serviceAssemblyName - name of the assembly to be shut down; must be
non-null and non-emptyException - if there is no such assemblyException - if the assembly fails to shut downString getState(String serviceAssemblyName) throws Exception
SHUTDOWN, STOPPED, STARTED.serviceAssemblyName - name of the assembly to query; must be
non-null and non-emptySHUTDOWN, STOPPED, or STARTEDException - if there is no such assemblyCopyright © 2011-2016 OpenESB Community. All Rights Reserved.