1 25 26 package org.objectweb.jonas.jmx; 27 28 import javax.management.MalformedObjectNameException ; 29 import javax.management.ObjectName ; 30 31 35 public class JoramObjectName { 36 37 static final String joramDomain = "Joram"; 38 static final String joramClientDomain = "joramClient"; 39 43 public static ObjectName joramAdapter() throws MalformedObjectNameException { 44 return ObjectName.getInstance(joramClientDomain + ":type=JoramAdapter,*"); 45 } 46 47 51 public static ObjectName joramPlatform() throws MalformedObjectNameException { 52 return ObjectName.getInstance(joramClientDomain + ":type=PlatformAdmin"); 53 } 54 55 59 public static ObjectName joramAdmin() throws MalformedObjectNameException { 60 return ObjectName.getInstance(joramClientDomain + ":type=JoramAdmin"); 61 } 62 63 69 public static ObjectName joramQueue(String name) throws MalformedObjectNameException { 70 return ObjectName.getInstance(joramClientDomain + ":type=queue,name=" + name); 71 } 72 73 78 public static ObjectName joramQueues() throws MalformedObjectNameException { 79 return ObjectName.getInstance(joramClientDomain + ":type=queue,*"); 80 } 81 82 88 public static ObjectName joramTopic(String name) throws MalformedObjectNameException { 89 return ObjectName.getInstance(joramClientDomain + ":type=topic,name=" + name); 90 } 91 92 97 public static ObjectName joramTopics() throws MalformedObjectNameException { 98 return ObjectName.getInstance(joramClientDomain + ":type=topic,*"); 99 } 100 101 107 public static ObjectName joramUser(String name) throws MalformedObjectNameException { 108 return ObjectName.getInstance(joramClientDomain + ":type=User,name=" + name); 109 } 110 111 116 public static ObjectName joramUsers() throws MalformedObjectNameException { 117 return ObjectName.getInstance(joramClientDomain + ":type=User,*"); 118 } 119 } 120 | Popular Tags |