|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supports various types of queries to find s based on various Attributes.
Field Summary | |
static java.lang.String |
J2EE_TYPE
The j2eeType as returned by AMX.getJ2EEType() . |
Fields inherited from interface com.sun.appserv.management.base.AMX |
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, NAME_KEY, NO_NAME, NULL_NAME |
Fields inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
LOG_RECORD_KEY, LOG_RECORD_NOTIFICATION_TYPE |
Method Summary | |
java.util.Set |
queryAllObjectNameSet()
|
java.util.Set |
queryAllSet()
|
java.util.Set |
queryInterfaceObjectNameSet(java.lang.String interfaceName,
java.util.Set candidateObjectNames)
|
java.util.Set |
queryInterfaceSet(java.lang.String interfaceName,
java.util.Set candidateObjectNames)
Return all AMX that implement the specified interface,
which may be any interface. |
java.util.Set |
queryJ2EENameObjectNameSet(java.lang.String nameValue)
|
java.util.Set |
queryJ2EENameSet(java.lang.String nameValue)
Return all AMX whose name is equal to 'nameValue'. |
java.lang.String[] |
queryJ2EETypeNames(java.lang.String j2eeTypeValue)
Calls queryJ2EETypeSet( j2eeTypeValue ), then creates an array consisting of the names of each of the resulting objects. |
java.util.Set |
queryJ2EETypeObjectNameSet(java.lang.String j2eeTypeValue)
|
java.util.Set |
queryJ2EETypeSet(java.lang.String j2eeTypeValue)
Return all AMX whose j2eeType is equal to 'j2eeTypeValue.
|
java.util.Set |
queryJ2EETypesObjectNameSet(java.util.Set j2eeTypes)
|
java.util.Set |
queryJ2EETypesSet(java.util.Set j2eeTypes)
Return all AMX whose j2eeType is equal to any specified in
'j2eeTypes'. |
java.util.Set |
queryPatternObjectNameSet(ObjectName pattern)
|
java.util.Set |
queryPatternObjectNameSet(java.lang.String domain,
java.lang.String props)
|
java.util.Set |
queryPatternSet(ObjectName pattern)
Return all AMX whose ObjectName matches the supplied ObjectName pattern, as defined by the JMX specification. |
java.util.Set |
queryPatternSet(java.lang.String domain,
java.lang.String props)
Makes an ObjectName pattern, then calls queryPatternSet( pat ) |
java.util.Set |
queryPropsObjectNameSet(java.lang.String props)
|
java.util.Set |
queryPropsSet(java.lang.String props)
Return all objects that match the specified properties in the JMX domain governed by this QueryMgr. |
AMX |
querySingletonJ2EEType(java.lang.String j2eeTypeValue)
Calls getJ2EETypeSet( j2eeTypeValue ) and extracts the single result. |
java.util.Set |
queryWildObjectNameSet(java.lang.String[] wildKeys,
java.lang.String[] wildValues)
|
java.util.Set |
queryWildSet(java.lang.String[] wildKeys,
java.lang.String[] wildValues)
Return all AMX whose whose ObjectName matches all property
expressions. |
Methods inherited from interface com.sun.appserv.management.base.AMX |
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName |
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
getMBeanEmitLogNotifications, getMBeanLoggerName, getMBeanLogLevel, setMBeanEmitLogNotifications, setMBeanLogLevel |
Methods inherited from interface javax.management.NotificationEmitter |
removeNotificationListener |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Field Detail |
public static final java.lang.String J2EE_TYPE
AMX.getJ2EEType()
.
Method Detail |
public AMX querySingletonJ2EEType(java.lang.String j2eeTypeValue)
j2eeTypeValue
- the value for the j2eeType property
exception
- if not foundpublic java.util.Set queryJ2EETypesSet(java.util.Set j2eeTypes)
AMX
whose j2eeType is equal to any specified in
'j2eeTypes'.
j2eeTypes
- Set of String (j2eeType values).
public java.util.Set queryJ2EETypesObjectNameSet(java.util.Set j2eeTypes)
queryJ2EETypesSet(java.util.Set)
public java.util.Set queryJ2EETypeSet(java.lang.String j2eeTypeValue)
AMX
whose j2eeType is equal to 'j2eeTypeValue.
Legal values include those defined in
J2EETypes
and those
defined in XTypes
j2eeTypeValue
- the value for the j2eeType property
public java.util.Set queryJ2EETypeObjectNameSet(java.lang.String j2eeTypeValue)
public java.util.Set queryJ2EENameSet(java.lang.String nameValue)
AMX
whose name is equal to 'nameValue'.
nameValue
- the value for the j2eeType property
public java.util.Set queryJ2EENameObjectNameSet(java.lang.String nameValue)
public java.lang.String[] queryJ2EETypeNames(java.lang.String j2eeTypeValue)
j2eeTypeValue
- the value for the j2eeType property
public java.util.Set queryPatternSet(ObjectName pattern)
This can be a relatively expensive operation if care is not taken to use a suitably constrained pattern. For example, querying for "*:*" will return every available AMX.
pattern
- an ObjectName containing a pattern as defined by JMX
public java.util.Set queryPatternObjectNameSet(ObjectName pattern)
public java.util.Set queryPatternSet(java.lang.String domain, java.lang.String props)
domain
- the domain or "*" for allprops
- a comma-separated Properties string
public java.util.Set queryPatternObjectNameSet(java.lang.String domain, java.lang.String props)
public java.util.Set queryPropsSet(java.lang.String props)
props
- a String containing one or more name/value propertiespublic java.util.Set queryPropsObjectNameSet(java.lang.String props)
public java.util.Set queryWildSet(java.lang.String[] wildKeys, java.lang.String[] wildValues)
AMX
whose whose ObjectName matches all property
expressions. Each property expression consists of a key expression, and a value
expression; an expression which is null is considered a "*" (match all).
Both key and value expressions may be wildcarded with the "*" character, which matches 0 or more characters.
Each property expression is matched in turn against the ObjectName. If a match fails, the ObjectName is not included in the result. If all matches succeed, then the ObjectName is included.
wildKeys
- one or more name expressions, null means allwildValues
- one or more value expressions, null means all
public java.util.Set queryWildObjectNameSet(java.lang.String[] wildKeys, java.lang.String[] wildValues)
public java.util.Set queryInterfaceSet(java.lang.String interfaceName, java.util.Set candidateObjectNames) throws java.lang.ClassNotFoundException
AMX
that implement the specified interface,
which may be any interface. This is the same as querying for all s
for their interfaces, then returning the set for which the
interface extends the specified interface.
interfaceName
- classname of the desired interfacecandidateObjectNames
- optional (may be null) Set of ObjectName to which the search is limited
java.lang.ClassNotFoundException
public java.util.Set queryInterfaceObjectNameSet(java.lang.String interfaceName, java.util.Set candidateObjectNames) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.util.Set queryAllSet()
queryAllObjectNameSet()
public java.util.Set queryAllObjectNameSet()
queryAllSet()
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.