public interface DeployerMBean
| Modifier and Type | Method and Description |
|---|---|
String |
deploy(String serviceUnitName,
String serviceUnitRootPath)
Deploy a Service Unit to the component.
|
String[] |
getDeployments()
Return a list of all Service Units currently deployed to the component.
|
ServiceUnitState |
getServiceUnitState(String serviceUnitName)
Get the current state of a Service Unit.
|
void |
init(String serviceUnitName,
String serviceUnitRootPath)
Initialize a Service Unit.
|
boolean |
isDeployed(String serviceUnitName)
Return a boolean value indicating whether the Service Unit is currently
deployed.
|
void |
shutDown(String serviceUnitName)
Shut down a Service Unit.
|
void |
shutDown(String serviceUnitName,
boolean force)
Shut down a Service Unit.
|
void |
start(String serviceUnitName)
Start a Service Unit.
|
void |
stop(String serviceUnitName)
Stop a Service Unit.
|
String |
undeploy(String serviceUnitName,
String serviceAssemblyName)
Undeploy a Service Unit from the component.
|
String |
undeploy(String serviceUnitName,
String serviceAssemblyName,
boolean force)
Undeploy a Service Unit from the component.
|
String deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException
serviceUnitName - the name of the Service Unit being deployed.serviceUnitRootPath - the full path to the Service Unit artifact
root directory.DeploymentException - if the deployment
operation is unsuccessful.String[] getDeployments()
ServiceUnitState getServiceUnitState(String serviceUnitName)
serviceUnitName - The unique name of the Service Unit.boolean isDeployed(String serviceUnitName)
serviceUnitName - the name of the Service Unit.String undeploy(String serviceUnitName, String serviceAssemblyName) throws DeploymentException
serviceUnitName - the name of the Service Unit being undeployed.serviceAssemblyName - the name of the parent Service Assembly
of the Service Unit.DeploymentException - if the undeploy
operation is unsuccessful.String undeploy(String serviceUnitName, String serviceAssemblyName, boolean force) throws DeploymentException
serviceUnitName - the name of the Service Unit being undeployed.serviceAssemblyName - the name of the parent Service Assembly
of the Service Unit.force - when set to true, indicates a forced undeploy, which
causes undeployment to be completed regardless of any errors which
may occur in the component's Service Unit Manager.DeploymentException - if the undeploy
operation is unsuccessful.void init(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException
serviceUnitName - the name of the Service Unit being initialized.serviceUnitRootPath - the absolute path to the directory, which
has the extracted service unit contents.DeploymentException - if the Service Unit is
not deployed, or is in an incorrect state.void shutDown(String serviceUnitName) throws DeploymentException
deploy() and before init().serviceUnitName - the name of the Service Unit being shut down.DeploymentException - if the Service Unit
is not deployed, or is in an incorrect state.void shutDown(String serviceUnitName, boolean force) throws DeploymentException
deploy() and before init().
If the force option is set, then the operation proceeds regardless of
of any errors in state or in the component's Service Unit Manager.serviceUnitName - the name of the Service Unit being shut down.force - when set to true, indicates a forced shutdown, which
causes the shutdown to be completed regardless of any errors which
may occur in the component's Service Unit Manager.DeploymentException - if the Service Unit
is not deployed, or is in an incorrect state.void start(String serviceUnitName) throws DeploymentException
serviceUnitName - the name of the Service Unit being started.DeploymentException - if the Service Unit
is not deployed, or is in an incorrect state.void stop(String serviceUnitName) throws DeploymentException
init() was called.serviceUnitName - the name of the Service Unit being stopped.DeploymentException - if the Service Unit
is not deployed, or is in an incorrect state.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.