public class MonitoringJob extends Object
| Constructor and Description |
|---|
MonitoringJob(ObjectName mBean,
List<String> attributes)
Constructor for the MonitoringJob class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String attribute)
Adds an attribute to be monitored to the job.
|
List<String> |
getAttributes()
Returns the list of attributes being monitored.
|
ObjectName |
getMBean()
Returns the MBean monitored by the job.
|
String |
getMonitoringInfo(MBeanServer server)
Builds a String from the MonitoringJob's MBean.
|
public MonitoringJob(ObjectName mBean, List<String> attributes) throws MalformedObjectNameException
mBean - MBean containing the attributes to be monitored.attributes - Attribute names to be monitored.MalformedObjectNameExceptionpublic String getMonitoringInfo(MBeanServer server)
server - MBeanServer to get attributes values from.public ObjectName getMBean()
public List<String> getAttributes()
public void addAttribute(String attribute)
attribute - Name of attribute to be monitored.Copyright © 2017. All rights reserved.