/** * Override to invoke the operation on all servers * * @param name * @param method * @param args * @param sig * @return * @throws Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { MBeanServerConnection[] adaptors = getAdaptors(); Object result = null; for (int i = 0; i < adaptors.length; i++) { MBeanServerConnection adaptor = adaptors[i]; log.debug("Using MBeanServerConnection: "+adaptor); result = invoke(adaptor, name, method, args, sig); } return result; }
/** * Override to invoke the operation on all servers * * @param name * @param method * @param args * @param sig * @return * @throws Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { MBeanServerConnection[] adaptors = getAdaptors(); Object result = null; for (int i = 0; i < adaptors.length; i++) { MBeanServerConnection adaptor = adaptors[i]; log.debug("Using MBeanServerConnection: "+adaptor); result = invoke(adaptor, name, method, args, sig); } return result; }
public void redeploy(MBeanServerConnection server, String name) throws Exception { if (Boolean.getBoolean("jbosstest.nodeploy") == true) { log.debug("Skipping redeployment of: " + name); return; } URL deployURL = getDeployURL(name); log.debug("Deploying " + name + ", url=" + deployURL); invoke(server, getDeployerName(), "redeploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }
public void redeploy(MBeanServerConnection server, String name) throws Exception { if (Boolean.getBoolean("jbosstest.nodeploy") == true) { log.debug("Skipping redeployment of: " + name); return; } URL deployURL = getDeployURL(name); log.debug("Deploying " + name + ", url=" + deployURL); invoke(server, getDeployerName(), "redeploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }
/** * Undeploy a package from the given server with the main deployer. * The supplied name is interpreted as a url, or as a filename in * jbosstest.deploy.lib or ../lib. * * @param server server on which the package should be deployed * @param name filename/url of package to undeploy. * @exception Exception Description of Exception */ public void undeploy(MBeanServerConnection server, String name) throws Exception { if (Boolean.getBoolean("jbosstest.nodeploy") == true) return; URL deployURL = getDeployURL(name); log.debug("Undeploying " + name + ", url=" + deployURL); Object[] args = {deployURL}; String[] sig = {"java.net.URL"}; invoke(server, getDeployerName(), "undeploy", args, sig); }
/** * Undeploy a package from the given server with the main deployer. * The supplied name is interpreted as a url, or as a filename in * jbosstest.deploy.lib or ../lib. * * @param server server on which the package should be deployed * @param name filename/url of package to undeploy. * @exception Exception Description of Exception */ public void undeploy(MBeanServerConnection server, String name) throws Exception { if (Boolean.getBoolean("jbosstest.nodeploy") == true) return; URL deployURL = getDeployURL(name); log.debug("Undeploying " + name + ", url=" + deployURL); Object[] args = {deployURL}; String[] sig = {"java.net.URL"}; invoke(server, getDeployerName(), "undeploy", args, sig); }
/** * Deploy a package on the given server with the main deployer. The supplied * name is interpreted as a url, or as a filename in jbosstest.deploy.lib or * ../lib. * * @param server server on which the package should be deployed * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ public void deploy(MBeanServerConnection server, String name) throws Exception { if (Boolean.getBoolean("jbosstest.nodeploy") == true) { log.debug("Skipping deployment of: " + name); return; } URL deployURL = getDeployURL(name); log.debug("Deploying " + name + ", url=" + deployURL + " to " + server); invoke(server, getDeployerName(), "deploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }
/** * Deploy a package on the given server with the main deployer. The supplied * name is interpreted as a url, or as a filename in jbosstest.deploy.lib or * ../lib. * * @param server server on which the package should be deployed * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ public void deploy(MBeanServerConnection server, String name) throws Exception { if (Boolean.getBoolean("jbosstest.nodeploy") == true) { log.debug("Skipping deployment of: " + name); return; } URL deployURL = getDeployURL(name); log.debug("Deploying " + name + ", url=" + deployURL + " to " + server); invoke(server, getDeployerName(), "deploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }