|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.util.MOTableSizeLimit
org.snmp4j.agent.mo.util.LogMOTableSizeLimit
public class LogMOTableSizeLimit
The LogMOTableSizeLimit implements a MOTableSizeLimit
to limit the number of entries in a table by removing the eldest rows
existing in the table when the limit is exceeded.
| Field Summary |
|---|
| Fields inherited from class org.snmp4j.agent.mo.util.MOTableSizeLimit |
|---|
PROPERTY_PREFIX |
| Constructor Summary | |
|---|---|
LogMOTableSizeLimit(int maxNumRows)
|
|
LogMOTableSizeLimit(java.util.Properties limits)
|
|
| Method Summary | |
|---|---|
protected boolean |
removeEldest(MOTableRowEvent triggeringEvent,
int numRows)
Removes the given number of rows starting at the lowest index value. |
| Methods inherited from class org.snmp4j.agent.mo.util.MOTableSizeLimit |
|---|
getLimits, getMaxNumRows, rowChanged, setLimits, setMaxNumRows |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogMOTableSizeLimit(int maxNumRows)
public LogMOTableSizeLimit(java.util.Properties limits)
| Method Detail |
|---|
protected boolean removeEldest(MOTableRowEvent triggeringEvent,
int numRows)
removeEldest in class MOTableSizeLimittriggeringEvent - the MOTableRowEvent object that describes the
table with exceeding row limit.numRows - the number of rows to remove (if possible).
true if one or more rows could be removed and
false if the causing event should be denied/rejected. The
default implementation returns false always.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||