public class Query extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
attribute
The attribute to retrieve (
MBeanServer.getAttribute(javax.management.ObjectName, String)) |
protected String |
key
If the MBean attribute value is a
CompositeData, the key to lookup. |
protected ObjectName |
objectName |
protected Integer |
position
If the returned value is a
Collectionor an array, the position of the entry to lookup. |
protected String |
resultAlias |
| Constructor and Description |
|---|
Query(String objectName,
String attribute) |
Query(String objectName,
String attribute,
int position) |
Query(String objectName,
String attribute,
String resultAlias) |
Query(String objectName,
String attribute,
String key,
Integer position,
String resultAlias) |
@Nonnull protected final ObjectName objectName
@Nonnull protected final String attribute
MBeanServer.getAttribute(javax.management.ObjectName, String))@Nullable protected final String key
CompositeData, the key to lookup.@Nullable protected final Integer position
Collectionor an array, the position of the entry to lookup.public Query(@Nonnull String objectName, @Nonnull String attribute, @Nonnull String resultAlias)
public Query(@Nonnull String objectName, @Nonnull String attribute, @Nullable String key, @Nullable Integer position, @Nonnull String resultAlias)
objectName - The ObjectName to search for
(MBeanServer.queryMBeans(javax.management.ObjectName, javax.management.QueryExp)),
can contain wildcards and return several entries.attribute - The attribute to retrieve (MBeanServer.getAttribute(javax.management.ObjectName, String))key - if the MBean attribute value is a CompositeData, the key to lookup.position - if the returned value is a Collectionor an array, the position of the entry to lookup.resultAlias - public void collectAndExport(@Nonnull MBeanServer mbeanServer, @Nonnull OutputWriter outputWriter)
Copyright © 2013. All Rights Reserved.