de.is24.util.monitoring.jmx
Class NoJmxReportable
java.lang.Object
de.is24.util.monitoring.jmx.NoJmxReportable
- All Implemented Interfaces:
- JmxReportable
final class NoJmxReportable
- extends Object
- implements JmxReportable
Null-object pattern implementation of JmxReportable.
Returns an empty attributes specification and therefore only null values.
- Author:
- Stefan Schubert, IT-E, IS24
|
Constructor Summary |
private |
NoJmxReportable()
Singleton, therefore no constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
private static final MBeanAttributeInfo[] NONE
INSTANCE
private static final NoJmxReportable INSTANCE
NoJmxReportable
private NoJmxReportable()
- Singleton, therefore no constructor.
getInstance
public static NoJmxReportable getInstance()
getAttributes
public MBeanAttributeInfo[] getAttributes()
- Specified by:
getAttributes in interface JmxReportable
- Returns:
- a list of
MBeanAttributeInfo, that is the specification of available attributes for monitoring.
getAttribute
public Object getAttribute(String attributeName)
- Specified by:
getAttribute in interface JmxReportable
- Parameters:
attributeName - the name of the attribute to be monitored.
- Returns:
- the current value of the requested attribute.
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.