public class MBeanArrayIndexKeyProvider extends MBeanAttributeKeyProvider
MBeanArrayIndexKeyProvider can be used.attribute| Constructor and Description |
|---|
MBeanArrayIndexKeyProvider(ObjectName name,
TypedAttribute attribute)
Creates an index mapping based on a MBean attribute that provides the
keys of the table rows.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator |
createTailIterator(Iterator it,
int pos) |
Object |
getRowValues(MBeanServerConnection server,
Object indexObject)
Gets the row value(s) for the specified index object.
|
Iterator |
keyIterator(MBeanServerConnection server)
Returns an iterator on the keys provided by this MBean attribute.
|
asList, asList, combineKeys, getKey, getKeyCount, getKeys, getSubKeyProviderObjectName, keyTailIteratorgetAttribute, getAttribute, getAttribute, getAttributeName, getAttributeType, setAttribute, setAttributegetMBeanNames, getObjectNamepublic MBeanArrayIndexKeyProvider(ObjectName name, TypedAttribute attribute)
ListCollectionname - the MBean's ObjectName.attribute - the description of the attribute that provides the row keys.public Iterator keyIterator(MBeanServerConnection server) throws IOException, MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException
MBeanAttributeKeyProviderkeyIterator in class MBeanAttributeKeyProviderserver - the MBeanServerConnection to be used to access the MBean.IOExceptionMBeanExceptionAttributeNotFoundExceptionInstanceNotFoundExceptionReflectionExceptionprotected Iterator createTailIterator(Iterator it, int pos)
createTailIterator in class MBeanAttributeKeyProviderpublic Object getRowValues(MBeanServerConnection server, Object indexObject) throws IOException, MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException
JMXArrayIndexKey the index object itself is
returned. Otherwise, the n-th object of the objects provided by the MBean
attribute supplied at creation time is returned where n
corresponds to the index object's index value.getRowValues in class MBeanAttributeKeyProviderserver - a MBeanServerConnection to use to access the MBean.indexObject - a JMXArrayIndexKey denoting the row index/value(s) to
return.indexObject if it is not an instance of
JMXArrayIndexKey or otherwise the n-th key (or row value).IOExceptionMBeanExceptionAttributeNotFoundExceptionInstanceNotFoundExceptionReflectionExceptionCopyright © 2015 SNMP4J.org. All rights reserved.