|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryMgr
Supports various types of queries to find s based on various Attributes.
Field Summary | |
---|---|
static 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, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME |
Method Summary | ||
---|---|---|
Set<ObjectName> |
queryAllObjectNameSet()
|
|
Set<AMX> |
queryAllSet()
|
|
Set<ObjectName> |
queryInterfaceObjectNameSet(String interfaceName,
Set<ObjectName> candidateObjectNames)
|
|
|
queryInterfaceSet(String interfaceName,
Set<ObjectName> candidateObjectNames)
Return all AMX that implement the specified interface,
which may be any interface. |
|
Set<ObjectName> |
queryJ2EENameObjectNameSet(String nameValue)
|
|
|
queryJ2EENameSet(String nameValue)
Return all AMX whose name is equal to 'nameValue'. |
|
Set<ObjectName> |
queryJ2EETypeNameObjectNameSet(String j2eeType,
String name)
|
|
String[] |
queryJ2EETypeNames(String j2eeType)
Calls queryJ2EETypeSet( j2eeTypeValue ), then creates an array consisting of the names of each of the resulting objects. |
|
|
queryJ2EETypeNameSet(String j2eeType,
String name)
|
|
Set<ObjectName> |
queryJ2EETypeObjectNameSet(String j2eeTypeValue)
|
|
|
queryJ2EETypeSet(String j2eeTypeValue)
Return all AMX whose j2eeType is equal to 'j2eeTypeValue. |
|
Set<ObjectName> |
queryJ2EETypesObjectNameSet(Set<String> j2eeTypes)
|
|
|
queryJ2EETypesSet(Set<String> j2eeTypes)
Return all AMX whose j2eeType is equal to any specified in
'j2eeTypes'. |
|
Set<ObjectName> |
queryPatternObjectNameSet(ObjectName pattern)
|
|
Set<ObjectName> |
queryPatternObjectNameSet(String domain,
String props)
|
|
|
queryPatternSet(ObjectName pattern)
Return all AMX whose ObjectName matches the supplied ObjectName pattern, as defined by the JMX specification. |
|
|
queryPatternSet(String domain,
String props)
Makes an ObjectName pattern, then calls queryPatternSet( pat ) |
|
Set<ObjectName> |
queryPropsObjectNameSet(String props)
|
|
|
queryPropsSet(String props)
Return all objects that match the specified properties in the JMX domain governed by this QueryMgr. |
|
|
querySingletonJ2EEType(String j2eeTypeValue)
Calls getJ2EETypeSet( j2eeTypeValue ) and extracts the single result. |
|
Set<ObjectName> |
queryWildObjectNameSet(String[] wildKeys,
String[] wildValues)
|
|
|
queryWildSet(String[] wildKeys,
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, isDAS |
Methods inherited from interface javax.management.NotificationEmitter |
---|
removeNotificationListener |
Methods inherited from interface javax.management.NotificationBroadcaster |
---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
---|
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel |
Field Detail |
---|
static final String J2EE_TYPE
AMX.getJ2EEType()
.
Method Detail |
---|
<T extends AMX> T querySingletonJ2EEType(String j2eeTypeValue)
j2eeTypeValue
- the value for the j2eeType property
exception
- if not found<T extends AMX> Set<T> queryJ2EETypesSet(Set<String> j2eeTypes)
AMX
whose j2eeType is equal to any specified in
'j2eeTypes'.
j2eeTypes
- Set of String (j2eeType values).
Set<ObjectName> queryJ2EETypesObjectNameSet(Set<String> j2eeTypes)
queryJ2EETypesSet(java.util.Set)
<T extends AMX> Set<T> queryJ2EETypeSet(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
Set<ObjectName> queryJ2EETypeObjectNameSet(String j2eeTypeValue)
<T extends AMX> Set<T> queryJ2EENameSet(String nameValue)
AMX
whose name is equal to 'nameValue'.
nameValue
- the value for the j2eeType property
Set<ObjectName> queryJ2EENameObjectNameSet(String nameValue)
String[] queryJ2EETypeNames(String j2eeType)
j2eeType
- the value for the j2eeType property
<T extends AMX> Set<T> queryJ2EETypeNameSet(String j2eeType, String name)
Set<ObjectName> queryJ2EETypeNameObjectNameSet(String j2eeType, String name)
<T extends AMX> Set<T> 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
Set<ObjectName> queryPatternObjectNameSet(ObjectName pattern)
<T extends AMX> Set<T> queryPatternSet(String domain, String props)
domain
- the domain or "*" for allprops
- a comma-separated Properties string
Set<ObjectName> queryPatternObjectNameSet(String domain, String props)
<T extends AMX> Set<T> queryPropsSet(String props)
props
- a String containing one or more name/value propertiesSet<ObjectName> queryPropsObjectNameSet(String props)
<T extends AMX> Set<T> queryWildSet(String[] wildKeys, 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.
Caution should be used in choosing the element type of the returned set. Unless
certain that a uniform type will be produced, Set<AMX> is usually the most
appropriate type eg:
Set<AMX> result = queryWildSet(...);
wildKeys
- one or more name expressions, null means allwildValues
- one or more value expressions, null means all
Set<ObjectName> queryWildObjectNameSet(String[] wildKeys, String[] wildValues)
<T extends AMX> Set<T> queryInterfaceSet(String interfaceName, Set<ObjectName> candidateObjectNames)
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
Set<ObjectName> queryInterfaceObjectNameSet(String interfaceName, Set<ObjectName> candidateObjectNames)
Set<AMX> queryAllSet()
queryAllObjectNameSet()
Set<ObjectName> queryAllObjectNameSet()
queryAllSet()
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.