org.snmp4j.agent.mo.jmx
Class MBeanAttributeMOTableInfo

java.lang.Object
  extended by org.snmp4j.agent.mo.jmx.MBeanMOInfo
      extended by org.snmp4j.agent.mo.jmx.MBeanAttributeMOTableInfo
Direct Known Subclasses:
MBeanAttributeListMOTableInfo

public class MBeanAttributeMOTableInfo
extends MBeanMOInfo

The MBeanAttributeMOTableInfo class describes the mapping from the attributes of an MBean to a SNMP conceptual table and vice versa.

Version:
1.0
Author:
Frank Fock

Constructor Summary
MBeanAttributeMOTableInfo(javax.management.ObjectName name, MBeanAttributeKeyProvider keyProvider, TypedAttribute[] columns, java.lang.String[] keyAttributes, JMXIndexSupport indexSupport)
          Creates a table mapping for the supplied MBean name.
 
Method Summary
 TypedAttribute[] getColumns()
           
 java.lang.String[] getIndexAttributes()
           
 JMXIndexSupport getIndexSupport()
           
 java.lang.Object getKey(javax.management.MBeanServerConnection server, javax.management.ObjectName row)
           
 MBeanAttributeKeyProvider getKeyProvider()
           
 
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

MBeanAttributeMOTableInfo

public MBeanAttributeMOTableInfo(javax.management.ObjectName name,
                                 MBeanAttributeKeyProvider keyProvider,
                                 TypedAttribute[] columns,
                                 java.lang.String[] keyAttributes,
                                 JMXIndexSupport indexSupport)
Creates a table mapping for the supplied MBean name.

Parameters:
name - the name of the MBean that provides the table data.
keyProvider - a key provider that provides the keys that identify rows in the table.
columns - the attributes that represent the columns of the table.
keyAttributes - the name of the attributes in columns that represent the primary key of the row.
indexSupport - provides the mapping between the row keys and their corresponding SNMP index values.
Method Detail

getIndexAttributes

public java.lang.String[] getIndexAttributes()

getColumns

public TypedAttribute[] getColumns()

getKeyProvider

public MBeanAttributeKeyProvider getKeyProvider()

getIndexSupport

public JMXIndexSupport getIndexSupport()

getKey

public java.lang.Object getKey(javax.management.MBeanServerConnection server,
                               javax.management.ObjectName row)
                        throws java.io.IOException,
                               javax.management.ReflectionException,
                               javax.management.InstanceNotFoundException
Throws:
java.io.IOException
javax.management.ReflectionException
javax.management.InstanceNotFoundException

Copyright 2006-2007 Frank Fock (SNMP4J.org)