/** * invoke wraps an invoke call to the mbean server in a lot of exception * unwrapping. * * @param name ObjectName of the mbean to be called * @param method mbean method to be called * @param args Object[] of arguments for the mbean method. * @param sig String[] of types for the mbean methods parameters. * @return Object returned by mbean method invocation. * @exception Exception Description of Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { return delegate.invoke(name, method, args, sig); }
/** * invoke wraps an invoke call to the mbean server in a lot of exception * unwrapping. * * @param name ObjectName of the mbean to be called * @param method mbean method to be called * @param args Object[] of arguments for the mbean method. * @param sig String[] of types for the mbean methods parameters. * @return Object returned by mbean method invocation. * @exception Exception Description of Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { return delegate.invoke(name, method, args, sig); }
/** * invoke wraps an invoke call to the mbean server in a lot of exception * unwrapping. * * @param name ObjectName of the mbean to be called * @param method mbean method to be called * @param args Object[] of arguments for the mbean method. * @param sig String[] of types for the mbean methods parameters. * @return Object returned by mbean method invocation. * @exception Exception Description of Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { return delegate.invoke(name, method, args, sig); }
/** * invoke wraps an invoke call to the mbean server in a lot of exception * unwrapping. * * @param name ObjectName of the mbean to be called * @param method mbean method to be called * @param args Object[] of arguments for the mbean method. * @param sig String[] of types for the mbean methods parameters. * @return Object returned by mbean method invocation. * @exception Exception Description of Exception */ protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception { return delegate.invoke(name, method, args, sig); }
/** Flush all authentication credentials for the java:/jaas/other security domain */ void flushAuthCache(String domain) throws Exception { ObjectName jaasMgr = new ObjectName("jboss.security:service=JaasSecurityManager"); Object[] params = {domain}; String[] signature = {"java.lang.String"}; invoke(jaasMgr, "flushAuthenticationCache", params, signature); }
/** Flush all authentication credentials for the java:/jaas/other security domain */ void flushAuthCache(String domain) throws Exception { ObjectName jaasMgr = new ObjectName("jboss.security:service=JaasSecurityManager"); Object[] params = {domain}; String[] signature = {"java.lang.String"}; invoke(jaasMgr, "flushAuthenticationCache", params, signature); }
public void redeploy(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(getDeployerName(), "redeploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }
public void redeploy(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(getDeployerName(), "redeploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }
/** * Undeploy a package with the main deployer. The supplied name is * interpreted as a url, or as a filename in jbosstest.deploy.lib or output/lib. * * @param name filename/url of package to undeploy. * @exception Exception Description of Exception */ public void undeploy(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(getDeployerName(), "undeploy", args, sig); }
/** * Undeploy a package with the main deployer. The supplied name is * interpreted as a url, or as a filename in jbosstest.deploy.lib or output/lib. * * @param name filename/url of package to undeploy. * @exception Exception Description of Exception */ public void undeploy(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(getDeployerName(), "undeploy", args, sig); }
/** * Deploy a package with the main deployer. The supplied name is * interpreted as a url, or as a filename in jbosstest.deploy.lib or output/lib. * * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ public void deploy(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); invoke(getDeployerName(), "deploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }
/** * Deploy a package with the main deployer. The supplied name is * interpreted as a url, or as a filename in jbosstest.deploy.lib or output/lib. * * @param name filename/url of package to deploy. * @exception Exception Description of Exception */ public void deploy(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); invoke(getDeployerName(), "deploy", new Object[]{deployURL}, new String[]{"java.net.URL"}); }
protected Object invoke(MBeanServerConnection server, ObjectName name, String method, Object[] args, String[] sig) throws Exception { try { this.getLog().debug("Invoking " + name.getCanonicalName() + " method=" + method); if (args != null) this.getLog().debug("args=" + Arrays.asList(args)); return server.invoke(name, method, args, sig); } catch (javax.management.MBeanException e) { log.error("MbeanException", e.getTargetException()); throw e.getTargetException(); } catch (javax.management.ReflectionException e) { log.error("ReflectionException", e.getTargetException()); throw e.getTargetException(); } catch (javax.management.RuntimeOperationsException e) { log.error("RuntimeOperationsException", e.getTargetException()); throw e.getTargetException(); } catch (javax.management.RuntimeMBeanException e) { log.error("RuntimeMbeanException", e.getTargetException()); throw e.getTargetException(); }
protected Object invoke(MBeanServerConnection server, ObjectName name, String method, Object[] args, String[] sig) throws Exception { try { this.getLog().debug("Invoking " + name.getCanonicalName() + " method=" + method); if (args != null) this.getLog().debug("args=" + Arrays.asList(args)); return server.invoke(name, method, args, sig); } catch (javax.management.MBeanException e) { log.error("MbeanException", e.getTargetException()); throw e.getTargetException(); } catch (javax.management.ReflectionException e) { log.error("ReflectionException", e.getTargetException()); throw e.getTargetException(); } catch (javax.management.RuntimeOperationsException e) { log.error("RuntimeOperationsException", e.getTargetException()); throw e.getTargetException(); } catch (javax.management.RuntimeMBeanException e) { log.error("RuntimeMbeanException", e.getTargetException()); throw e.getTargetException(); }