org.snmp4j.agent.mo.jmx
Class AbstractJMXTableSupport

java.lang.Object
  extended by org.snmp4j.agent.mo.jmx.AbstractJMXTableSupport
All Implemented Interfaces:
JMXTableSupport

public abstract class AbstractJMXTableSupport
extends java.lang.Object
implements JMXTableSupport


Field Summary
protected  java.util.Map<org.snmp4j.smi.OID,org.snmp4j.agent.mo.jmx.AbstractJMXTableSupport.JMXTableDetailSupport> columnValueMappings
           
 
Constructor Summary
AbstractJMXTableSupport()
           
 
Method Summary
 void add(org.snmp4j.smi.OID tableOID, JMXRowSupport rowSupport, JMXColumnSupport columnSupport)
           
 JMXColumnSupport getColumnSupport(org.snmp4j.smi.OID tableOID)
           
abstract  org.snmp4j.smi.OID getLastIndex(org.snmp4j.smi.OID tableOID)
          Gets the last SNMP index currently supported by the specified table.
 int getRow(org.snmp4j.smi.OID tableOID, org.snmp4j.agent.mo.MOTableRow row)
          Gets the row values for the specified row.
abstract  int getRowCount(org.snmp4j.smi.OID tableOID)
          Returns the number of rows of the specified table.
 JMXRowSupport getRowSupport(org.snmp4j.smi.OID tableOID)
           
protected  org.snmp4j.agent.mo.jmx.AbstractJMXTableSupport.JMXTableDetailSupport getTableDetailSupport(org.snmp4j.smi.OID tableOID)
           
abstract  org.snmp4j.smi.OID mapToIndex(org.snmp4j.smi.OID tableOID, java.lang.Object rowIdentifier)
           
abstract  java.lang.Object mapToRowId(org.snmp4j.smi.OID tableOID, org.snmp4j.smi.OID rowIndex)
          Maps a SNMP row index to a native row identifier object.
 org.snmp4j.agent.mo.jmx.AbstractJMXTableSupport.JMXTableDetailSupport removeDetailSupport(org.snmp4j.smi.OID tableOID)
           
abstract  java.util.Iterator rowIdIterator(org.snmp4j.smi.OID tableOID)
          Returns an Iterator over the row identifiers of the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.snmp4j.agent.mo.jmx.JMXTableSupport
mapToIndex, rowIdTailIterator, setRow
 

Field Detail

columnValueMappings

protected java.util.Map<org.snmp4j.smi.OID,org.snmp4j.agent.mo.jmx.AbstractJMXTableSupport.JMXTableDetailSupport> columnValueMappings
Constructor Detail

AbstractJMXTableSupport

public AbstractJMXTableSupport()
Method Detail

add

public void add(org.snmp4j.smi.OID tableOID,
                JMXRowSupport rowSupport,
                JMXColumnSupport columnSupport)

removeDetailSupport

public org.snmp4j.agent.mo.jmx.AbstractJMXTableSupport.JMXTableDetailSupport removeDetailSupport(org.snmp4j.smi.OID tableOID)

getLastIndex

public abstract org.snmp4j.smi.OID getLastIndex(org.snmp4j.smi.OID tableOID)
Description copied from interface: JMXTableSupport
Gets the last SNMP index currently supported by the specified table.

Specified by:
getLastIndex in interface JMXTableSupport
Parameters:
tableOID - the OID of the table ManagedObject (including the .1 of the entry object) for which indexes are mapped.
Returns:
the last SNMP row index of the specified table.

getRow

public int getRow(org.snmp4j.smi.OID tableOID,
                  org.snmp4j.agent.mo.MOTableRow row)
Description copied from interface: JMXTableSupport
Gets the row values for the specified row.

Specified by:
getRow in interface JMXTableSupport
Parameters:
tableOID - the OID of the table ManagedObject (including the .1 of the entry object) for which indexes are mapped.
row - a MOTableRow instance which will be modified to hold the SNMP values of the row specified by row's index value.
Returns:
a SNMP error status that indicates whether to operation succeeded or not.

getTableDetailSupport

protected org.snmp4j.agent.mo.jmx.AbstractJMXTableSupport.JMXTableDetailSupport getTableDetailSupport(org.snmp4j.smi.OID tableOID)

getRowSupport

public JMXRowSupport getRowSupport(org.snmp4j.smi.OID tableOID)

getColumnSupport

public JMXColumnSupport getColumnSupport(org.snmp4j.smi.OID tableOID)

getRowCount

public abstract int getRowCount(org.snmp4j.smi.OID tableOID)
Description copied from interface: JMXTableSupport
Returns the number of rows of the specified table.

Specified by:
getRowCount in interface JMXTableSupport
Parameters:
tableOID - the OID of the table ManagedObject (including the .1 of the entry object) for which indexes are mapped.
Returns:
the number of rows in the table.

rowIdIterator

public abstract java.util.Iterator rowIdIterator(org.snmp4j.smi.OID tableOID)
Description copied from interface: JMXTableSupport
Returns an Iterator over the row identifiers of the table.

Specified by:
rowIdIterator in interface JMXTableSupport
Parameters:
tableOID - the OID of the table ManagedObject (including the .1 of the entry object) for which indexes are mapped.
Returns:
an Iterator of row identifiers.

mapToIndex

public abstract org.snmp4j.smi.OID mapToIndex(org.snmp4j.smi.OID tableOID,
                                              java.lang.Object rowIdentifier)

mapToRowId

public abstract java.lang.Object mapToRowId(org.snmp4j.smi.OID tableOID,
                                            org.snmp4j.smi.OID rowIndex)
Description copied from interface: JMXTableSupport
Maps a SNMP row index to a native row identifier object.

Specified by:
mapToRowId in interface JMXTableSupport
Parameters:
tableOID - the OID of the table ManagedObject (including the .1 of the entry object) for which indexes are mapped.
rowIndex - a SNMP row index of the table specified by tableOID.
Returns:
a native row identifier.

Copyright 2006-2007 Frank Fock (SNMP4J.org)