|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jmx.service.RemoteDeployer
A JMX client to deploy an application into a running JBoss server via RMI.
Nested Class Summary | |
protected static class |
RemoteDeployer.DeployerCommand
Switches equate to commands for the desired deploy/undeploy operation to execute; this is the base class for those commands. |
Field Summary | |
protected org.jboss.deployment.Deployer |
deployer
A proxy to the deployer instance on the remote server. |
static String |
PROGRAM_NAME
|
Constructor Summary | |
RemoteDeployer()
Construct a new RemoteDeployer. |
|
RemoteDeployer(javax.management.ObjectName deployerName,
Hashtable env,
String adapterName)
Construct a new RemoteDeployer. |
|
RemoteDeployer(javax.management.ObjectName deployerName,
String url,
String adapterName)
Construct a new RemoteDeployer. |
|
RemoteDeployer(String url,
String adapterName)
Construct a new RemoteDeployer. |
Method Summary | |
void |
deploy(String url)
Deploys the given url on the remote server. |
void |
deploy(URL url)
Deploys the given url on the remote server. |
protected static void |
displayUsage()
|
protected void |
init(javax.management.ObjectName deployerName,
Hashtable env,
String adapterName)
|
boolean |
isDeployed(String url)
Check if the given url is deployed on thr remote server. |
boolean |
isDeployed(URL url)
Check if the given url is deployed on thr remote server. |
protected RemoteMBeanServer |
lookupRemoteMBeanServer(Hashtable env,
String adapterName)
Lookup the RemoteMBeanServer which will be used to invoke methods on. |
static void |
main(String[] args)
|
void |
undeploy(String url)
Undeploys the application specifed by the given url on the remote server. |
void |
undeploy(URL url)
Undeploys the application specifed by the given url on the remote server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.jboss.deployment.Deployer deployer
public static final String PROGRAM_NAME
Constructor Detail |
public RemoteDeployer(javax.management.ObjectName deployerName, Hashtable env, String adapterName) throws Exception
public RemoteDeployer(javax.management.ObjectName deployerName, String url, String adapterName) throws Exception
url
- The URL of the JNDI provider or null to use the default.public RemoteDeployer(String url, String adapterName) throws Exception
Uses MainDeployer and the given url for Context.PROVIDER_URL.
public RemoteDeployer() throws Exception
Uses MainDeployer.
Method Detail |
protected void init(javax.management.ObjectName deployerName, Hashtable env, String adapterName) throws Exception
Exception
protected RemoteMBeanServer lookupRemoteMBeanServer(Hashtable env, String adapterName) throws Exception
env
- The initial context environment or null to use default.adapterName
- The JNDI name of the RMI adapter or null for the default.
Exception
- Failed to lookup connector reference or retruned reference
was not of type RMIAdapter
.public void deploy(URL url) throws org.jboss.deployment.DeploymentException
deploy
in interface org.jboss.deployment.Deployer
url
- The url of the application to deploy.
org.jboss.deployment.DeploymentException
- Failed to deploy application.public void deploy(String url) throws MalformedURLException, org.jboss.deployment.DeploymentException
url
- The url of the application to deploy.
org.jboss.deployment.DeploymentException
- Failed to deploy application.
MalformedURLException
- Invalid URL.public void undeploy(URL url) throws org.jboss.deployment.DeploymentException
undeploy
in interface org.jboss.deployment.Deployer
url
- The url of the application to undeploy.
org.jboss.deployment.DeploymentException
- Failed to undeploy application.public void undeploy(String url) throws MalformedURLException, org.jboss.deployment.DeploymentException
url
- The url of the application to undeploy.
org.jboss.deployment.DeploymentException
- Failed to undeploy application.
MalformedURLException
- Invalid URL.public boolean isDeployed(URL url)
isDeployed
in interface org.jboss.deployment.Deployer
url
- The url of the application to check.
public boolean isDeployed(String url) throws MalformedURLException
url
- The url of the application to check.
org.jboss.deployment.DeploymentException
- Failed to determine if application is deployed.
MalformedURLException
- Invalid URL.protected static void displayUsage()
public static void main(String[] args) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |