com.sun.appserv.management.util.jmx
Class MBeanServerConnection_Pattern
java.lang.Object
com.sun.appserv.management.util.jmx.MBeanServerConnection_Hook
com.sun.appserv.management.util.jmx.MBeanServerConnection_Pattern
- All Implemented Interfaces:
- MBeanServerConnection
public class MBeanServerConnection_Pattern
- extends MBeanServerConnection_Hook
This class allows use of MBeanServerConnection methods with ObjectName patterns
that resolve to a single MBean. This is useful to avoid hard-coupling to specific
ObjectNames; instead an ObjectName pattern may be used which resolves to a
single MBean.
For example, if you know the 'name' property is unique (at least for your MBean),
you could use the ObjectName "*:name=myname,*" instead of a possibly much longer
and complicated name (which potentially could change each time the MBean is registered).
Fields inherited from class com.sun.appserv.management.util.jmx.MBeanServerConnection_Hook |
ADD_NOTIFICATION_LISTENER, CREATE_MBEAN, GET_ATTRIBUTE, GET_ATTRIBUTES, GET_DEFAULT_DOMAIN, GET_DOMAINS, GET_MBEAN_COUNT, GET_MBEAN_INFO, GET_OBJECT_INSTANCE, INVOKE, IS_INSTANCE_OF, IS_REGISTERED, QUERY_MBEANS, QUERY_NAMES, REGISTER_MBEAN, REMOVE_NOTIFICATION_LISTENER, SET_ATTRIBUTE, SET_ATTRIBUTES, UNREGISTER_MBEAN |
Methods inherited from class com.sun.appserv.management.util.jmx.MBeanServerConnection_Hook |
addNotificationListener, addNotificationListener, createMBean, createMBean, createMBean, createMBean, getAttribute, getAttributes, getDefaultDomain, getDomains, getMBeanCount, getMBeanInfo, getObjectInstance, invoke, isInstanceOf, isRegistered, queryMBeans, queryNames, removeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, setAttribute, setAttributes, unregisterMBean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanServerConnection_Pattern
public MBeanServerConnection_Pattern(MBeanServerConnection impl)
resolve
public ObjectName resolve(ObjectName input)
throws IOException,
InstanceNotFoundException
- Throws:
IOException
InstanceNotFoundException
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.