uk.co.gidley.jmxmonitor.monitoring
Class DiscriminatingJmxMonitor
java.lang.Object
uk.co.gidley.jmxmonitor.monitoring.DiscriminatingJmxMonitor
- All Implemented Interfaces:
- Monitor
public class DiscriminatingJmxMonitor
- extends Object
- implements Monitor
A JMX monitor that takes readings based on a discriminator Is that really the best classname I could think of Created
by IntelliJ IDEA. User: ben Date: Jan 8, 2010 Time: 5:11:22 PM
|
Method Summary |
String |
getName()
The name of the monitor This is defined in the scope of the monitor group |
Object |
getReading()
The reading is typically a base type or a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscriminatingJmxMonitor
public DiscriminatingJmxMonitor(String name,
ObjectName objectName,
String attributeName,
String discriminator,
MBeanServerConnection jmxConnection)
- Parameters:
name - The name of this monitorobjectName - The objectName pattern to resolve 1 or N objectsattributeName - The attribute to monitordiscriminator - The attribute to discriminate results by
getName
public String getName()
- Description copied from interface:
Monitor
- The name of the monitor This is defined in the scope of the monitor group
- Specified by:
getName in interface Monitor
- Returns:
getReading
public Object getReading()
throws ReadingFailedException
- Description copied from interface:
Monitor
- The reading is typically a base type or a String. Other items can be used but you need to be sure EL can handle
them
- Specified by:
getReading in interface Monitor
- Returns:
-
- Throws:
ReadingFailedException
Copyright © 2009-2010. All Rights Reserved.