public class JMXMonitoringJob extends Object
Constructor and Description |
---|
JMXMonitoringJob(ObjectName mBean,
List<String> attributes)
Constructor for the JMXMonitoringJob 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 JMXMonitoringJob's MBean.
|
public JMXMonitoringJob(ObjectName mBean, List<String> attributes) throws MalformedObjectNameException
mBean
- MBean containing the attributes to be monitored.attributes
- Attribute names to be monitored.MalformedObjectNameException
public 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 © 2018. All rights reserved.