org.snmp4j.agent.mo.jmx
Interface JMXMutableTableSupport

All Superinterfaces:
JMXTableSupport

public interface JMXMutableTableSupport
extends JMXTableSupport

The JMXMutableTableSupport defines the necessary interface to map tabular JMX data to a SNMP4J-Agent mutable table model. The interface takes care of mapping JMX row identifiers to SNMP table indexes and vice versa.

Version:
1.0
Author:
Frank Fock

Method Summary
 void clear(org.snmp4j.smi.OID tableOID)
          Remove all rows (thus all JMX structures) corresponding to the specified SNMP table.
 int createRow(org.snmp4j.smi.OID tableOID, org.snmp4j.agent.mo.MOTableRow row)
          Creates a JMX structure that corresponds to the specified SNMP row.
 int removeRow(org.snmp4j.smi.OID tableOID, org.snmp4j.smi.OID rowIndex)
          Removes a JMX structure that corresponds to the specified SNMP row.
 int setRow(org.snmp4j.smi.OID tableOID, org.snmp4j.agent.mo.MOTableRow row)
          Sets the values of a SNMP row to the corresponding JMX structure.
 
Methods inherited from interface org.snmp4j.agent.mo.jmx.JMXTableSupport
getLastIndex, getRow, getRowCount, mapToIndex, mapToRowId, rowIdIterator, rowIdTailIterator, setRow
 

Method Detail

setRow

int setRow(org.snmp4j.smi.OID tableOID,
           org.snmp4j.agent.mo.MOTableRow row)
Sets the values of a SNMP row to the corresponding JMX structure.

Parameters:
tableOID - the OID of the SNMP table.
row - the SNMP table row.
Returns:
a SNMP error status that indicates whether to operation succeeded or not.

createRow

int createRow(org.snmp4j.smi.OID tableOID,
              org.snmp4j.agent.mo.MOTableRow row)
Creates a JMX structure that corresponds to the specified SNMP row.

Parameters:
tableOID - the OID of the SNMP table.
row - the SNMP table row to be created.
Returns:
a SNMP error status that indicates whether to operation succeeded or not.

removeRow

int removeRow(org.snmp4j.smi.OID tableOID,
              org.snmp4j.smi.OID rowIndex)
Removes a JMX structure that corresponds to the specified SNMP row.

Parameters:
tableOID - the OID of the SNMP table.
rowIndex - the SNMP table row index of the row to be deleted.
Returns:
a SNMP error status that indicates whether to operation succeeded or not.

clear

void clear(org.snmp4j.smi.OID tableOID)
Remove all rows (thus all JMX structures) corresponding to the specified SNMP table.

Parameters:
tableOID - the OID of the SNMP table.

Copyright 2006-2007 Frank Fock (SNMP4J.org)