1 22 package org.jboss.mx.server.registry; 23 24 import java.util.List ; 25 import java.util.Map ; 26 27 import javax.management.InstanceAlreadyExistsException ; 28 import javax.management.InstanceNotFoundException ; 29 import javax.management.MBeanRegistrationException ; 30 import javax.management.NotCompliantMBeanException ; 31 import javax.management.ObjectInstance ; 32 import javax.management.ObjectName ; 33 34 50 public interface MBeanRegistry 51 { 52 89 ObjectInstance registerMBean(Object object, ObjectName name, Map valueMap) 90 throws InstanceAlreadyExistsException , 91 MBeanRegistrationException , 92 NotCompliantMBeanException ; 93 94 111 void unregisterMBean(ObjectName name) 112 throws InstanceNotFoundException , MBeanRegistrationException ; 113 114 129 public MBeanEntry get(ObjectName name) 130 throws InstanceNotFoundException ; 131 132 137 String getDefaultDomain(); 138 139 144 String [] getDomains(); 145 146 154 public ObjectInstance getObjectInstance(ObjectName name) 155 throws InstanceNotFoundException ; 156 157 166 public Object getValue(ObjectName name, String key) 167 throws InstanceNotFoundException ; 168 169 180 boolean contains(ObjectName name); 181 182 192 public List findEntries(ObjectName pattern); 193 194 202 int getSize(); 203 204 209 void releaseRegistry(); 210 211 } 212 | Popular Tags |