1 26 package org.objectweb.joram.mom.proxies; 27 28 import javax.management.openmbean.*; 29 30 import org.objectweb.joram.mom.messages.Message; 31 32 import java.util.Hashtable ; 33 import java.util.Collection ; 34 35 public class MessageJMXWrapper { 36 37 public final static String [] itemNames = { 38 "id", "priority"}; 39 40 public final static String [] itemDescs = { 41 "xxx", "xxx"}; 42 43 public final static OpenType[] itemTypes = { 44 SimpleType.STRING, SimpleType.INTEGER}; 45 46 public static CompositeDataSupport createCompositeDataSupport( 47 Message msg) throws Exception { 48 return new CompositeDataSupport( 49 new CompositeType("Message", 50 "xxx", 51 itemNames, 52 itemDescs, 53 itemTypes), 54 itemNames, 55 new Object []{msg.getIdentifier(), 56 new Integer (msg.getPriority())}); 57 } 58 } 59 | Popular Tags |