org.snmp4j.agent.mo.snmp
Class StorageType
java.lang.Object
org.snmp4j.agent.mo.MOColumn
org.snmp4j.agent.mo.MOMutableColumn
org.snmp4j.agent.mo.snmp.StorageType
- All Implemented Interfaces:
- java.lang.Comparable
public class StorageType
- extends MOMutableColumn
|
Constructor Summary |
StorageType(int columnID,
MOAccess access,
org.snmp4j.smi.Integer32 defaultValue)
|
StorageType(int columnID,
MOAccess access,
org.snmp4j.smi.Integer32 defaultValue,
boolean mutableInService)
|
|
Method Summary |
boolean |
isVolatile(MOTableRow row,
int column)
Tests if the supplied row is volatile or persistent. |
int |
validate(org.snmp4j.smi.Variable newValue,
org.snmp4j.smi.Variable oldValue)
|
| Methods inherited from class org.snmp4j.agent.mo.MOMutableColumn |
addMOValueValidationListener, cleanup, commit, getDefaultValue, isMandatory, isMutableInService, prepare, removeMOValueValidationListener, setDefaultValue, setMandatory, setMutableInService, toString, undo, validateSetRequest |
| Methods inherited from class org.snmp4j.agent.mo.MOColumn |
compareTo, get, getAccess, getColumnID, getSyntax, getTable, getValue, setAccess, setColumnID, setSyntax, setTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
other
public static final int other
- See Also:
- Constant Field Values
volatile_
public static final int volatile_
- See Also:
- Constant Field Values
nonVolatile
public static final int nonVolatile
- See Also:
- Constant Field Values
permanent
public static final int permanent
- See Also:
- Constant Field Values
readOnly
public static final int readOnly
- See Also:
- Constant Field Values
StorageType
public StorageType(int columnID,
MOAccess access,
org.snmp4j.smi.Integer32 defaultValue,
boolean mutableInService)
StorageType
public StorageType(int columnID,
MOAccess access,
org.snmp4j.smi.Integer32 defaultValue)
validate
public int validate(org.snmp4j.smi.Variable newValue,
org.snmp4j.smi.Variable oldValue)
- Overrides:
validate in class MOMutableColumn
isVolatile
public boolean isVolatile(MOTableRow row,
int column)
- Description copied from class:
MOColumn
- Tests if the supplied row is volatile or persistent. If volatile then
the row will not be saved when the table is saved to persistent storage.
- Overrides:
isVolatile in class MOColumn
- Parameters:
row - a row of the table where this column is part of.column - the column index of this column in row.
- Returns:
true if row should not be
Copyright © 2011 SNMP4J.org. All Rights Reserved.