org.snmp4j.agent.mo.jmx
Class JMXMutableTableModel

java.lang.Object
  extended by org.snmp4j.agent.mo.jmx.JMXTableModel
      extended by org.snmp4j.agent.mo.jmx.JMXMutableTableModel
All Implemented Interfaces:
org.snmp4j.agent.mo.MOMutableTableModel, org.snmp4j.agent.mo.MOTableModel, org.snmp4j.agent.mo.MOTableRowFactory

public class JMXMutableTableModel
extends JMXTableModel
implements org.snmp4j.agent.mo.MOMutableTableModel

The JMXMutableTableModel extends the JMXTableModel by adding support for row creation and deletion.

Version:
1.0
Author:
Frank Fock

Nested Class Summary
 
Nested classes/interfaces inherited from class org.snmp4j.agent.mo.jmx.JMXTableModel
JMXTableModel.JMXTableRowIterator
 
Field Summary
 
Fields inherited from class org.snmp4j.agent.mo.jmx.JMXTableModel
columns, rowFactory, table, tableOID
 
Constructor Summary
JMXMutableTableModel(org.snmp4j.smi.OID tableOID, JMXMutableTableSupport tableSupport, org.snmp4j.agent.mo.MOColumn[] columns)
          Creates a JMX based table model for a table with the specified OID and columns using the supplied JMXMutableTableSupport to map between SNMP and JMX.
 
Method Summary
 org.snmp4j.agent.mo.MOTableRow addRow(org.snmp4j.agent.mo.MOTableRow row)
           
 void clear()
           
 void clear(org.snmp4j.agent.mo.MOTableRowFilter filter)
           
 org.snmp4j.agent.mo.MOTableRow createRow(org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
           
 void freeRow(org.snmp4j.agent.mo.MOTableRow row)
           
 org.snmp4j.agent.mo.MOTableRow removeRow(org.snmp4j.smi.OID index)
           
 void setRowFactory(org.snmp4j.agent.mo.MOTableRowFactory rowFactory)
           
 
Methods inherited from class org.snmp4j.agent.mo.jmx.JMXTableModel
containsRow, firstIndex, firstRow, getColumnCount, getInitialRowValues, getRow, getRowCount, getRowFactory, iterator, lastIndex, lastRow, tailIterator
 
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.MOTableModel
containsRow, firstIndex, firstRow, getColumnCount, getRow, getRowCount, iterator, lastIndex, lastRow, tailIterator
 

Constructor Detail

JMXMutableTableModel

public JMXMutableTableModel(org.snmp4j.smi.OID tableOID,
                            JMXMutableTableSupport tableSupport,
                            org.snmp4j.agent.mo.MOColumn[] columns)
Creates a JMX based table model for a table with the specified OID and columns using the supplied JMXMutableTableSupport to map between SNMP and JMX.

Parameters:
tableOID - the OID of the table (e.g., ifEntry).
tableSupport - the JMXMutableTableSupport instance that maps between SNMP values and value organisation to JMX MBean(s).
columns - the columns defined for the table.
Method Detail

createRow

public org.snmp4j.agent.mo.MOTableRow createRow(org.snmp4j.smi.OID index,
                                                org.snmp4j.smi.Variable[] values)
                                         throws java.lang.UnsupportedOperationException
Specified by:
createRow in interface org.snmp4j.agent.mo.MOTableRowFactory
Throws:
java.lang.UnsupportedOperationException

freeRow

public void freeRow(org.snmp4j.agent.mo.MOTableRow row)
Specified by:
freeRow in interface org.snmp4j.agent.mo.MOTableRowFactory

addRow

public org.snmp4j.agent.mo.MOTableRow addRow(org.snmp4j.agent.mo.MOTableRow row)
Specified by:
addRow in interface org.snmp4j.agent.mo.MOMutableTableModel

removeRow

public org.snmp4j.agent.mo.MOTableRow removeRow(org.snmp4j.smi.OID index)
Specified by:
removeRow in interface org.snmp4j.agent.mo.MOMutableTableModel

clear

public void clear()
Specified by:
clear in interface org.snmp4j.agent.mo.MOMutableTableModel

clear

public void clear(org.snmp4j.agent.mo.MOTableRowFilter filter)
Specified by:
clear in interface org.snmp4j.agent.mo.MOMutableTableModel

setRowFactory

public void setRowFactory(org.snmp4j.agent.mo.MOTableRowFactory rowFactory)
Specified by:
setRowFactory in interface org.snmp4j.agent.mo.MOMutableTableModel
Overrides:
setRowFactory in class JMXTableModel

Copyright 2006-2007 Frank Fock (SNMP4J.org)