org.objectweb.joram.mom.dest
Class MonitoringHelper

java.lang.Object
  extended by org.objectweb.joram.mom.dest.MonitoringHelper

public class MonitoringHelper
extends java.lang.Object


Field Summary
(package private) static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
MonitoringHelper()
           
 
Method Summary
static void addMonitoredAttributes(java.util.Vector elements, java.lang.String MBeanName, java.lang.String attributes)
          Add the specified attributes to the list of monitored attributes.
static void delMonitoredAttributes(java.util.Vector elements, java.lang.String mbean)
          Removes all the attributes of the specified MBean in the list of monitored attributes.
static void getJMXValues(Message message, java.util.Vector elements)
           
static java.lang.String[] getMonitoredAttributes(java.util.Vector elements)
          Returns the comma separated list of all monitored attributes.
private static void setMessageProperty(Message message, javax.management.ObjectName mbeanName, java.lang.String attrName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.objectweb.util.monolog.api.Logger logger
Constructor Detail

MonitoringHelper

public MonitoringHelper()
Method Detail

getJMXValues

public static void getJMXValues(Message message,
                                java.util.Vector elements)

setMessageProperty

private static void setMessageProperty(Message message,
                                       javax.management.ObjectName mbeanName,
                                       java.lang.String attrName)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getMonitoredAttributes

public static java.lang.String[] getMonitoredAttributes(java.util.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(java.util.Vector elements,
                                          java.lang.String MBeanName,
                                          java.lang.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.

delMonitoredAttributes

public static void delMonitoredAttributes(java.util.Vector elements,
                                          java.lang.String mbean)
Removes all the attributes of the specified MBean in the list of monitored attributes.

Parameters:
elements - the various elements to monitor.
mbean - the name of the MBean.


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.