de.is24.util.monitoring.jmx
Class InApplicationMonitorDynamicMBean

java.lang.Object
  extended by de.is24.util.monitoring.jmx.InApplicationMonitorDynamicMBean
All Implemented Interfaces:
DynamicMBean

public class InApplicationMonitorDynamicMBean
extends Object
implements DynamicMBean

Dynamic MBean that represents one non-primitive Reportable (Timer, HistorizableList) that contains multiple values.

Author:
ptraeder

Field Summary
(package private) static SimpleDateFormat DATE_FORMAT
           
(package private) static org.apache.log4j.Logger LOGGER
           
private  JmxReportable type
           
 
Constructor Summary
InApplicationMonitorDynamicMBean(Reportable reportable)
           
 
Method Summary
 Object getAttribute(String attribute)
           
private  Object getAttributeInternal(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
 MBeanInfo getMBeanInfo()
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 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

LOGGER

static final org.apache.log4j.Logger LOGGER

DATE_FORMAT

static final SimpleDateFormat DATE_FORMAT

type

private final JmxReportable type
Constructor Detail

InApplicationMonitorDynamicMBean

public InApplicationMonitorDynamicMBean(Reportable reportable)
Parameters:
reportable - a Reportable to be monitored by this MBean. May not be null.
Method Detail

getMBeanInfo

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

getAttribute

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

getAttributes

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

getAttributeInternal

private Object getAttributeInternal(String attribute)

setAttribute

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

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


Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.