org.apache.geronimo.system.jmx
Class RealMBeanServerReference

java.lang.Object
  extended by 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)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 javax.management.MBeanServer getMBeanServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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.