org.snmp4j.agent.mo.jmx
Class MBeanInvokationKeyProvider

java.lang.Object
  extended by org.snmp4j.agent.mo.jmx.MBeanMOInfo
      extended by org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo
          extended by org.snmp4j.agent.mo.jmx.MBeanAttributeKeyProvider
              extended by org.snmp4j.agent.mo.jmx.MBeanInvokationKeyProvider

public class MBeanInvokationKeyProvider
extends MBeanAttributeKeyProvider

If a MBean provides the keys for a SNMP conceptual table by an attribute and the objects that represent rows of that table can be accessed through a call to an operation of that MBean then this class can be used to provide the row objects for the SNMP conceptual table.

Version:
1.0
Author:
Frank Fock

Field Summary
 
Fields inherited from class org.snmp4j.agent.mo.jmx.MBeanAttributeMOInfo
attribute
 
Constructor Summary
MBeanInvokationKeyProvider(javax.management.ObjectName mBeanName, TypedAttribute keyAttribute, java.lang.String rowProvidingOperation)
           
MBeanInvokationKeyProvider(javax.management.ObjectName mBeanName, TypedAttribute keyAttribute, java.lang.String rowProvidingOperation, boolean keysNeedSorting)
           
 
Method Summary
 java.lang.Object getRowValues(javax.management.MBeanServerConnection server, java.lang.Object indexObject)
           
 
Methods inherited from class org.snmp4j.agent.mo.jmx.MBeanAttributeKeyProvider
asList, asList, combineKeys, createTailIterator, getKey, getKeyCount, getKeys, getSubKeyProviderObjectName, keyIterator, keyTailIterator
 
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

MBeanInvokationKeyProvider

public MBeanInvokationKeyProvider(javax.management.ObjectName mBeanName,
                                  TypedAttribute keyAttribute,
                                  java.lang.String rowProvidingOperation)

MBeanInvokationKeyProvider

public MBeanInvokationKeyProvider(javax.management.ObjectName mBeanName,
                                  TypedAttribute keyAttribute,
                                  java.lang.String rowProvidingOperation,
                                  boolean keysNeedSorting)
Method Detail

getRowValues

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
Overrides:
getRowValues in class MBeanAttributeKeyProvider
Throws:
java.io.IOException
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException

Copyright 2006-2007 Frank Fock (SNMP4J.org)