|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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)
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)
Shut down the service assembly. |
java.lang.String |
start(java.lang.String serviceAssemblyName)
Start the service assembly. |
java.lang.String |
stop(java.lang.String serviceAssemblyName)
Stop the service assembly. |
java.lang.String |
undeploy(java.lang.String serviceAssemblyName)
Undeploys the given Service Assembly from the JBI environment. |
Field Detail |
public static final java.lang.String SHUTDOWN
public static final java.lang.String STOPPED
public static final java.lang.String STARTED
Method Detail |
public 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 existpublic 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 failspublic 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 failspublic 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 occurspublic java.lang.String[] getDeployedServiceAssemblies() throws java.lang.Exception
java.lang.Exception
- if a processing error occurspublic 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 occurspublic 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 occurspublic 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 occurspublic 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
public 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 startpublic 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 stoppublic 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 downpublic 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
- if there is no such assembly
|
Built 06/07/2005 11:16 AM on acer (SunOS 5.9) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |