org.snmp4j.agent.mo.jmx
Class JMXTableModel

java.lang.Object
  extended by org.snmp4j.agent.mo.jmx.JMXTableModel
All Implemented Interfaces:
org.snmp4j.agent.mo.MOTableModel
Direct Known Subclasses:
JMXMutableTableModel

public class JMXTableModel
extends java.lang.Object
implements org.snmp4j.agent.mo.MOTableModel

The JMXTableModel implements the MOTableModel interface with the support of a JMXTableSupport instance.

Version:
1.0
Author:
Frank Fock

Nested Class Summary
 class JMXTableModel.JMXTableRowIterator
           
 
Field Summary
protected  org.snmp4j.agent.mo.MOColumn[] columns
           
protected  org.snmp4j.agent.mo.MOTableRowFactory rowFactory
           
protected  JMXTableSupport table
           
protected  org.snmp4j.smi.OID tableOID
           
 
Constructor Summary
JMXTableModel(org.snmp4j.smi.OID tableEntryOID, JMXTableSupport table, org.snmp4j.agent.mo.MOColumn[] columns)
           
 
Method Summary
 boolean containsRow(org.snmp4j.smi.OID index)
           
 org.snmp4j.smi.OID firstIndex()
           
 org.snmp4j.agent.mo.MOTableRow firstRow()
           
 int getColumnCount()
           
protected  org.snmp4j.smi.Variable[] getInitialRowValues()
           
 org.snmp4j.agent.mo.MOTableRow getRow(org.snmp4j.smi.OID index)
           
 int getRowCount()
           
 org.snmp4j.agent.mo.MOTableRowFactory getRowFactory()
           
 java.util.Iterator iterator()
           
 org.snmp4j.smi.OID lastIndex()
          Returns the last row index in this model.
 org.snmp4j.agent.mo.MOTableRow lastRow()
          Returns the last row contained in this model.
 void setRowFactory(org.snmp4j.agent.mo.MOTableRowFactory rowFactory)
           
 java.util.Iterator tailIterator(org.snmp4j.smi.OID lowerBound)
          Returns an iterator on a view of the rows of this table model whose index values are greater or equal lowerBound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableOID

protected org.snmp4j.smi.OID tableOID

table

protected JMXTableSupport table

columns

protected org.snmp4j.agent.mo.MOColumn[] columns

rowFactory

protected org.snmp4j.agent.mo.MOTableRowFactory rowFactory
Constructor Detail

JMXTableModel

public JMXTableModel(org.snmp4j.smi.OID tableEntryOID,
                     JMXTableSupport table,
                     org.snmp4j.agent.mo.MOColumn[] columns)
Method Detail

getInitialRowValues

protected org.snmp4j.smi.Variable[] getInitialRowValues()

containsRow

public boolean containsRow(org.snmp4j.smi.OID index)
Specified by:
containsRow in interface org.snmp4j.agent.mo.MOTableModel

firstIndex

public org.snmp4j.smi.OID firstIndex()
Specified by:
firstIndex in interface org.snmp4j.agent.mo.MOTableModel

firstRow

public org.snmp4j.agent.mo.MOTableRow firstRow()
Specified by:
firstRow in interface org.snmp4j.agent.mo.MOTableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface org.snmp4j.agent.mo.MOTableModel

getRow

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

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface org.snmp4j.agent.mo.MOTableModel

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface org.snmp4j.agent.mo.MOTableModel

lastIndex

public org.snmp4j.smi.OID lastIndex()
Returns the last row index in this model.

Specified by:
lastIndex in interface org.snmp4j.agent.mo.MOTableModel
Returns:
the last index OID of this model.

lastRow

public org.snmp4j.agent.mo.MOTableRow lastRow()
Returns the last row contained in this model.

Specified by:
lastRow in interface org.snmp4j.agent.mo.MOTableModel
Returns:
the MOTableRow with the greatest index or null if the model is empty.

tailIterator

public java.util.Iterator tailIterator(org.snmp4j.smi.OID lowerBound)
Returns an iterator on a view of the rows of this table model whose index values are greater or equal lowerBound.

Specified by:
tailIterator in interface org.snmp4j.agent.mo.MOTableModel
Parameters:
lowerBound - the lower bound index (inclusive). If lowerBound is null the returned iterator is the same as returned by iterator().
Returns:
an Iterator over the

getRowFactory

public org.snmp4j.agent.mo.MOTableRowFactory getRowFactory()

setRowFactory

public void setRowFactory(org.snmp4j.agent.mo.MOTableRowFactory rowFactory)

Copyright 2006-2007 Frank Fock (SNMP4J.org)