com.sun.appserv.management.util.jmx
Class ObjectNameQueryMBeanImpl
java.lang.Object
javax.management.StandardMBean
com.sun.appserv.management.util.jmx.ObjectNameQueryMBeanImpl
- All Implemented Interfaces:
- ObjectNameQuery, ObjectNameQueryMBean, DynamicMBean, MBeanRegistration
public class ObjectNameQueryMBeanImpl
- extends StandardMBean
- implements ObjectNameQueryMBean, MBeanRegistration
An MBean implementing ObjectNameQueryMBean
Methods inherited from class javax.management.StandardMBean |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, setAttribute, setAttributes, setImplementation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectNameQueryMBeanImpl
public ObjectNameQueryMBeanImpl()
throws NotCompliantMBeanException
- Throws:
NotCompliantMBeanException
matchAll
public Set<ObjectName> matchAll(ObjectName startingSetPattern,
String[] regexNames,
String[] regexValues)
throws MalformedObjectNameException,
IOException
- Specified by:
matchAll
in interface ObjectNameQueryMBean
- Throws:
MalformedObjectNameException
IOException
matchAll
public Set<ObjectName> matchAll(Set<ObjectName> startingSet,
String[] regexNames,
String[] regexValues)
- Description copied from interface:
ObjectNameQuery
- Return the ObjectNames of all MBeans whose properties match all the specified
regular expressions. Both property names and values may be searched.
A starting set may be specified by using an ObjectName pattern.
This can greatly improve the performance of the search by restricting the
set of MBeans which are examined; otherwise all registered MBeans must be examined.
The regexNames[ i ] pattern corresponds to regexValues[ i ]. A value of null
for any item is taken to mean "match anything". Thus specifing null for
'regexNames' means "match any name" and specifying regexNames[ i ] = null means
to match only based on regexValues[ i ] (and vice versa).
- Specified by:
matchAll
in interface ObjectNameQuery
- Parameters:
startingSet
- optional ObjectName pattern for starting set to searchregexNames
- optional series of regular expressions for Property namesregexValues
- optional series of regular expressions for Property values
- Returns:
- array of ObjectName (may be of zero length)
matchAny
public Set<ObjectName> matchAny(ObjectName startingSetPattern,
String[] regexNames,
String[] regexValues)
throws MalformedObjectNameException,
IOException
- Specified by:
matchAny
in interface ObjectNameQueryMBean
- Throws:
MalformedObjectNameException
IOException
matchAny
public Set<ObjectName> matchAny(Set<ObjectName> startingSet,
String[] regexNames,
String[] regexValues)
- Description copied from interface:
ObjectNameQuery
- Return the ObjectNames of all MBeans whose properties match any of the specified
regular expressions. Both property names and values may be searched.
A starting set may be specified by using an ObjectName pattern.
This can greatly improve the performance of the search by restricting the
set of MBeans which are examined; otherwise all registered MBeans must be examined.
The regexNames[ i ] pattern corresponds to regexValues[ i ]. A value of null
for any item is taken to mean "match anything". Thus specifing null for
'regexNames' means "match any name" and specifying regexNames[ i ] = null means
to match only based on regexValues[ i ] (and vice versa).
- Specified by:
matchAny
in interface ObjectNameQuery
- Parameters:
startingSet
- optional ObjectName pattern for starting set to searchregexNames
- optional series of regular expressions for Property namesregexValues
- optional series of regular expressions for Property values
- Returns:
- array of ObjectName (may be of zero length)
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
- Specified by:
preRegister
in interface MBeanRegistration
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister
in interface MBeanRegistration
preDeregister
public void preDeregister()
- Specified by:
preDeregister
in interface MBeanRegistration
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface MBeanRegistration
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.