wt.jmx.core.mbeans
Class Dumper

java.lang.Object
  extended by wt.jmx.core.StandardMBeanFix
      extended by wt.jmx.core.StandardMBean
          extended by wt.jmx.core.SelfAwareMBean
              extended by wt.jmx.core.mbeans.Dumper
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, BaseObjectNamed, DumperMBean, SelfEmailingMBean

public final class Dumper
extends SelfAwareMBean
implements DumperMBean

This MBean provides operations to dump text files, stack traces, MBean summary data, etc, to JMX operation results (and thus to a JMX console) or to e-mail.

Supported API: true

Extendable: false


Method Summary
static Dumper getInstance(StandardMBean mbeanContext, boolean throwExceptionOnNoInstance)
          Return the Dumper associated by MBeanLoader with 'mbeanContext' or the Dumper started and still not stopped within this classloader.
 
Methods inherited from class wt.jmx.core.SelfAwareMBean
deregister, destroy, getBaseObjectName, getObjectName, getObjectNameOnPreRegister, getOwnerMBean, getSelfAwareMBean, init, isInited, isRegistered, isStarted, onDestroy, onInit, postDeregister, postRegister, preDeregister, preRegister, register, register, register, resetObjectName, setOwnerMBean, start, stop
 
Methods inherited from class wt.jmx.core.StandardMBean
cacheMBeanInfo, cacheMBeanInfoInInstance, createMBeanInfo, getCachedInstanceMBeanInfo, getCachedMBeanInfo, getDescription, getDescription, getDescription, getDescription, getImpact, getMBeanInfo, getParameterName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Dumper getInstance(StandardMBean mbeanContext,
                                 boolean throwExceptionOnNoInstance)
Return the Dumper associated by MBeanLoader with 'mbeanContext' or the Dumper started and still not stopped within this classloader.

Supported API: true

Parameters:
mbeanContext - MBean to use as a lookup context for the given MBean (currently ignored unless SelfAwareMBean)
throwExceptionOnNoInstance - Whether a NullPointerException should be thrown when no started instance is available