Package org.objectweb.joram.mom.dest
Class MonitoringHelper
- java.lang.Object
-
- org.objectweb.joram.mom.dest.MonitoringHelper
-
public class MonitoringHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description MonitoringHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddMonitoredAttributes(Vector elements, String MBeanName, String attributes)Add the specified attributes to the list of monitored attributes.static voiddelMonitoredAttributes(Vector elements, String mbean)Removes all the attributes of the specified MBean in the list of monitored attributes.static voidgetJMXValues(Message message, Vector elements)static String[]getMonitoredAttributes(Vector elements)Returns the comma separated list of all monitored attributes.private static voidsetMessageProperty(Message message, String mbeanName, String attrName)
-
-
-
Field Detail
-
logger
private static Logger logger
-
DEBUG
private static final boolean DEBUG
-
-
Method Detail
-
setMessageProperty
private static void setMessageProperty(Message message, String mbeanName, String attrName) throws Exception
- Throws:
Exception
-
getMonitoredAttributes
public static String[] getMonitoredAttributes(Vector elements)
Returns the comma separated list of all monitored attributes.- Parameters:
elements- the various elements to monitor.- Returns:
- the comma separated list of all monitored attributes.
-
addMonitoredAttributes
public static void addMonitoredAttributes(Vector elements, String MBeanName, String attributes)
Add the specified attributes to the list of monitored attributes. If the Mbean is already monitored, the specified list of attributes overrides the existing one.- Parameters:
elements- the various elements to monitor.MBeanName- the name of the MBean.attributes- the comma separated list of attributes to monitor.
-
-