org.objectweb.joram.mom.messages
Class MessageJMXWrapper

java.lang.Object
  extended by org.objectweb.joram.mom.messages.MessageJMXWrapper

public class MessageJMXWrapper
extends java.lang.Object


Field Summary
private static java.lang.String[] itemDescs
           
private static java.lang.String[] itemNames
           
private static javax.management.openmbean.OpenType[] itemTypes
           
private static javax.management.openmbean.CompositeType rowType
           
 
Constructor Summary
MessageJMXWrapper()
           
 
Method Summary
static javax.management.openmbean.CompositeData createCompositeDataSupport(Message msg)
          Returns the description of a message.
static javax.management.openmbean.TabularData createTabularDataSupport(java.util.Map messages, java.util.List ids)
          Returns the description of a subset of an hashtable of messages.
static javax.management.openmbean.TabularData createTabularDataSupport(java.util.Vector messages)
          Returns the description of a vector of messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemNames

private static final java.lang.String[] itemNames

itemDescs

private static final java.lang.String[] itemDescs

itemTypes

private static javax.management.openmbean.OpenType[] itemTypes

rowType

private static javax.management.openmbean.CompositeType rowType
Constructor Detail

MessageJMXWrapper

public MessageJMXWrapper()
Method Detail

createCompositeDataSupport

public static javax.management.openmbean.CompositeData createCompositeDataSupport(Message msg)
                                                                           throws java.lang.Exception
Returns the description of a message. The description includes the type and priority of the message.

Parameters:
msg - The message to describe.
Returns:
The message description.
Throws:
java.lang.Exception

createTabularDataSupport

public static javax.management.openmbean.TabularData createTabularDataSupport(java.util.Vector messages)
                                                                       throws java.lang.Exception
Returns the description of a vector of messages.

Parameters:
messages - The vector of messages to describe.
Returns:
The messages description.
Throws:
java.lang.Exception

createTabularDataSupport

public static javax.management.openmbean.TabularData createTabularDataSupport(java.util.Map messages,
                                                                              java.util.List ids)
                                                                       throws java.lang.Exception
Returns the description of a subset of an hashtable of messages.

Parameters:
messages - The hashtable of messages to describe.
Returns:
The messages description.
Throws:
java.lang.Exception


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