Methods Summary |
---|
public static ClientKernelAbstraction | getClientInstance()
if (clientKernelAbstraction == null)
{
MBeanServerConnection mbeanServer = (MBeanServerConnection)getMBeanServer();
clientKernelAbstraction = new JmxClientKernelAbstraction(mbeanServer);
}
return clientKernelAbstraction;
|
public static KernelAbstraction | getInstance()
if (kernelAbstraction == null)
{
// TODO always use JmxKernelAbstraction in Branch_4_0
MBeanServer mbeanServer = (MBeanServer)getMBeanServer();
kernelAbstraction = new JmxKernelAbstraction(mbeanServer);
}
return kernelAbstraction;
|
protected static javax.management.MBeanServerConnection | getMBeanServer()
MBeanServerConnection mbeanServer;
try
{
mbeanServer = org.jboss.mx.util.MBeanServerLocator.locateJBoss();
}
catch (IllegalStateException e)
{
String adaptorName = System.getProperty("jbosstest.server.name", "jmx/invoker/RMIAdaptor");
mbeanServer = (MBeanServerConnection)InitialContextFactory.getInitialContext().lookup(adaptorName);
}
return mbeanServer;
|