org.apache.karaf.diagnostic.management.internal
Class DiagnosticDumpMBeanImpl

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.karaf.diagnostic.management.internal.DiagnosticDumpMBeanImpl
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, DiagnosticDumpMBean

public class DiagnosticDumpMBeanImpl
extends javax.management.StandardMBean
implements DiagnosticDumpMBean

Implementation of diagnostic mbean.

Author:
ldywicki

Constructor Summary
DiagnosticDumpMBeanImpl()
          Creates new diagnostic mbean.
 
Method Summary
 void createDump(boolean directory, java.lang.String name)
          Create dump with directory switch and name.
 void createDump(java.lang.String name)
          Creates dump witch given name
 void setProviders(java.util.List<DumpProvider> providers)
          Sets dump providers.
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagnosticDumpMBeanImpl

public DiagnosticDumpMBeanImpl()
                        throws javax.management.NotCompliantMBeanException
Creates new diagnostic mbean.

Throws:
javax.management.NotCompliantMBeanException
Method Detail

createDump

public void createDump(java.lang.String name)
                throws Exception
Creates dump witch given name

Specified by:
createDump in interface DiagnosticDumpMBean
Parameters:
name - Name of the dump.
Throws:
Exception - In case of any problems.

createDump

public void createDump(boolean directory,
                       java.lang.String name)
                throws Exception
Create dump with directory switch and name.

Specified by:
createDump in interface DiagnosticDumpMBean
Parameters:
directory - Should dump be created in directory.
name - Name of the dump.
Throws:
Exception - In case of any problems.

setProviders

public void setProviders(java.util.List<DumpProvider> providers)
Sets dump providers.

Parameters:
providers - Dump providers.


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.