|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.agent.mo.jmx.MBeanMOInfo
org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo
org.snmp4j.agent.mo.jmx.MBeanAttributeKeyProvider
public class MBeanAttributeKeyProvider
The MBeanAttributeKeyProvider provides the row keys of a
conceptual table from a MBean attribute. The keys are returned in the same
order as provided by the MBean attribute by default. If the
keysNeedSorting is set, keys are returned always in their
natural order.
| Field Summary |
|---|
| Fields inherited from class org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo |
|---|
attribute |
| Constructor Summary | |
|---|---|
MBeanAttributeKeyProvider(javax.management.ObjectName name,
TypedAttribute attribute)
Creates a key provider with a MBean name and a attribute description. |
|
MBeanAttributeKeyProvider(javax.management.ObjectName name,
TypedAttribute attribute,
boolean keysNeedSorting)
Creates a key provider with a MBean name and a attribute description. |
|
| Method Summary | |
|---|---|
static java.util.List<java.lang.Integer> |
asList(int[] a)
|
static java.util.List<java.lang.Long> |
asList(long[] a)
|
protected java.util.Iterator |
createTailIterator(java.util.Iterator it,
int indexPos)
|
int |
getKeyCount(javax.management.MBeanServerConnection server)
Returns the number of row keys available. |
java.lang.Object |
getRowValues(javax.management.MBeanServerConnection server,
java.lang.Object indexObject)
|
java.util.Iterator |
keyIterator(javax.management.MBeanServerConnection server)
Returns an iterator on the keys provided by this MBean attribute. |
java.util.Iterator |
keyTailIterator(javax.management.MBeanServerConnection server,
java.lang.Object firstRowId)
Returns an iterator on the keys provided by this MBean attribute starting from the supplied row key. |
| Methods inherited from class org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo |
|---|
getAttribute, getAttribute, getAttribute, getAttributeName, getAttributeType, setAttribute, setAttribute |
| Methods inherited from class org.snmp4j.agent.mo.jmx.MBeanMOInfo |
|---|
getMBeanNames, getObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanAttributeKeyProvider(javax.management.ObjectName name,
TypedAttribute attribute)
name - a MBean's ObjectName.attribute - the description of an attribute of the MBean identified by
name.
public MBeanAttributeKeyProvider(javax.management.ObjectName name,
TypedAttribute attribute,
boolean keysNeedSorting)
name - a MBean's ObjectName.attribute - the description of an attribute of the MBean identified by
name.keysNeedSorting - if true keys will be sorted by their natural order.| Method Detail |
|---|
public java.util.Iterator keyIterator(javax.management.MBeanServerConnection server)
throws java.io.IOException,
javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.InstanceNotFoundException,
javax.management.ReflectionException
server - the MBeanServerConnection to be used to access the MBean.
java.io.IOException
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionExceptionpublic static java.util.List<java.lang.Integer> asList(int[] a)
public static java.util.List<java.lang.Long> asList(long[] a)
public java.util.Iterator keyTailIterator(javax.management.MBeanServerConnection server,
java.lang.Object firstRowId)
throws java.io.IOException,
javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.InstanceNotFoundException,
javax.management.ReflectionException
server - the MBeanServerConnection to be used to access the MBean.firstRowId - the lower bound (including) row key for the iterator.
java.io.IOException
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
protected java.util.Iterator createTailIterator(java.util.Iterator it,
int indexPos)
public int getKeyCount(javax.management.MBeanServerConnection server)
throws java.io.IOException,
javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.InstanceNotFoundException,
javax.management.ReflectionException
server - the MBeanServerConnection to be used to access the MBean.
java.io.IOException
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
public java.lang.Object getRowValues(javax.management.MBeanServerConnection server,
java.lang.Object indexObject)
throws java.io.IOException,
javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.InstanceNotFoundException,
javax.management.ReflectionException
java.io.IOException
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
|
Copyright 2006-2007 Frank Fock (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||