com.sun.appserv.management.helper
Class Helper
java.lang.Object
   com.sun.appserv.management.helper.Helper
com.sun.appserv.management.helper.Helper
- Direct Known Subclasses: 
- DeployedItemHelper
- public class Helper- extends java.lang.Object
Base class for Helpers, useable alone as well.
 
 
| Method Summary | 
|  java.util.Set | filterByAttributeValue(java.util.Set objectNameSet,
                       java.lang.String attributeName,
                       java.lang.Object valueToMatch)Filter ObjectNames based on the value of a particular Attribute.
 | 
|  DomainRoot | getDomainRoot()
 | 
| protected  java.util.Set | propsQuery(java.lang.String props)
 | 
| protected  java.util.Set | propsQuery(java.lang.String props1,
           java.lang.String props2)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
mDomainRoot
protected final DomainRoot mDomainRoot
mQueryMgr
protected final QueryMgr mQueryMgr
mBulkAccess
protected final BulkAccess mBulkAccess
Helper
public Helper(AMX proxy)
getDomainRoot
public DomainRoot getDomainRoot()
- 
 
propsQuery
protected java.util.Set propsQuery(java.lang.String props)
- 
 
propsQuery
protected java.util.Set propsQuery(java.lang.String props1,
                                   java.lang.String props2)
- 
 
filterByAttributeValue
public java.util.Set filterByAttributeValue(java.util.Set objectNameSet,
                                            java.lang.String attributeName,
                                            java.lang.Object valueToMatch)
- Filter ObjectNames based on the value of a particular Attribute.  The value
                may be null or anything else.  This is essentially a crude form of using
                the QueryMgr. A value which is a Class object succeeds if the result is
                an object whose class is assignable to the specfied class. Typically this
                is used to detect a thrown Exception.
                
                For example, to select all MBeans which have a [bB]oolean Attribute named "Enabled",
                which is set to true, call:
                 filterByAttributeValue( objectNameSet, "Enabled", Boolean.TRUE) 
                The query for the Attribute value is performed as a bulk operation; thus this
                routine may be used with confidence that it is fast.
 
 
- 
- Parameters:
- objectNameSet- Set of ObjectName
- attributeName-
- valueToMatch- an Object whose value must be null, or equals() to the result
- Returns:
- Set of ObjectName which have Enabled flag matching
 
Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.