org.apache.geronimo.system.jmx
Class RealMBeanServerReference
java.lang.Object
org.apache.geronimo.system.jmx.RealMBeanServerReference
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, MBeanServerReference
@GBean
public class RealMBeanServerReference
- extends Object
- implements MBeanServerReference, org.apache.geronimo.gbean.GBeanLifecycle
Creates a real mbean server of finds an existing one with the specified mbeanServerId
- Version:
- $Rev: 883857 $ $Date: 2009-11-25 04:28:41 +0800 (Wed, 25 Nov 2009) $
|
Constructor Summary |
RealMBeanServerReference()
Finds an existing MBeanServer with default domain GERONIMO_DEFAULT_DOMAIN
or creates a new one if there isn't any. |
RealMBeanServerReference(org.osgi.framework.BundleContext bundleContext,
boolean usePlatformMBeanServer,
String mbeanServerId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RealMBeanServerReference
public RealMBeanServerReference(@ParamSpecial(type=bundleContext)
org.osgi.framework.BundleContext bundleContext,
@ParamAttribute(name="usePlatformMBeanServer")
boolean usePlatformMBeanServer,
@ParamAttribute(name="mbeanServerId")
String mbeanServerId)
throws MBeanServerNotFound
- Throws:
MBeanServerNotFound
RealMBeanServerReference
public RealMBeanServerReference()
- Finds an existing MBeanServer with default domain GERONIMO_DEFAULT_DOMAIN
or creates a new one if there isn't any.
getMBeanServer
public MBeanServer getMBeanServer()
- Specified by:
getMBeanServer in interface MBeanServerReference
doFail
public void doFail()
- Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle
doStart
public void doStart()
throws Exception
- Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
Copyright © 2003-2013 The Apache Geronimo development community. All Rights Reserved.