cz.cuni.amis.introspection.jmx
Class FolderMBean

Package class diagram package FolderMBean
java.lang.Object
  extended by cz.cuni.amis.introspection.jmx.FolderMBean
All Implemented Interfaces:
DynamicMBean

public class FolderMBean
extends Object
implements DynamicMBean

Adapter exposing the Folder as a DynamicMBean.

Author:
Ik

Field Summary
protected  Folder folder
           
 
Constructor Summary
FolderMBean(Folder folder)
           
 
Method Summary
static void exportFolderHierarchy(Folder folder, MBeanServer mBeanServer, String domain, String rootName)
           
 Object getAttribute(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
 MBeanInfo getMBeanInfo()
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 void registerFolderHierarchyInJMX(MBeanServer mBeanServer, String domain, String path)
          Export this folder to a JMX MBeanServer.
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

folder

protected Folder folder
Constructor Detail

FolderMBean

public FolderMBean(Folder folder)
Method Detail

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Specified by:
setAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

getAttributes

public AttributeList getAttributes(String[] attributes)
Specified by:
getAttributes in interface DynamicMBean

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Specified by:
setAttributes in interface DynamicMBean

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Specified by:
invoke in interface DynamicMBean
Throws:
MBeanException
ReflectionException

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean

registerFolderHierarchyInJMX

public void registerFolderHierarchyInJMX(MBeanServer mBeanServer,
                                         String domain,
                                         String path)
                                  throws JMException,
                                         IntrospectionException
Export this folder to a JMX MBeanServer.

Parameters:
mBeanServer - MBeanServer where this folder will be registered
domain - domain under which the folder will appear, eg. "MyDomain"
Throws:
JMException
IntrospectionException

exportFolderHierarchy

public static void exportFolderHierarchy(Folder folder,
                                         MBeanServer mBeanServer,
                                         String domain,
                                         String rootName)
                                  throws JMException,
                                         IntrospectionException
Throws:
JMException
IntrospectionException


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.