org.apache.geronimo.system.jmx
Class RealMBeanServerReference
java.lang.Object
org.apache.geronimo.system.jmx.RealMBeanServerReference
- All Implemented Interfaces:
- GBeanLifecycle, MBeanServerReference
@GBean
public class RealMBeanServerReference
- extends java.lang.Object
- implements MBeanServerReference, 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,
java.lang.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")
java.lang.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 javax.management.MBeanServer getMBeanServer()
- Specified by:
getMBeanServer in interface MBeanServerReference
doFail
public void doFail()
- Specified by:
doFail in interface GBeanLifecycle
doStart
public void doStart()
throws java.lang.Exception
- Specified by:
doStart in interface GBeanLifecycle
- Throws:
java.lang.Exception
doStop
public void doStop()
throws java.lang.Exception
- Specified by:
doStop in interface GBeanLifecycle
- Throws:
java.lang.Exception
Copyright © 2003-2012 The Apache Geronimo development community. All Rights Reserved.