Package org.snmp4j.agent.mo.snmp
Class StorageType
java.lang.Object
org.snmp4j.agent.mo.MOColumn<V>
org.snmp4j.agent.mo.MOMutableColumn<org.snmp4j.smi.Integer32>
org.snmp4j.agent.mo.snmp.StorageType
- All Implemented Interfaces:
Comparable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionStorageType
(int columnID, MOAccess access, org.snmp4j.smi.Integer32 defaultValue) StorageType
(int columnID, MOAccess access, org.snmp4j.smi.Integer32 defaultValue, boolean mutableInService) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.snmp4j.smi.Integer32
getStorageType
(MOTableRow<?> row, MOTable<?, ?, ?> table) Gets the value of the StorageType column (if it exists) in the specified row and table.boolean
isVolatile
(MOTableRow<org.snmp4j.smi.Integer32> 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, getRestoreValue, getStoreValue, getSyntax, getTable, getValue, setAccess, setColumnID, setSyntax, setTable
-
Field Details
-
other
public static final int other- See Also:
-
volatile_
public static final int volatile_- See Also:
-
nonVolatile
public static final int nonVolatile- See Also:
-
permanent
public static final int permanent- See Also:
-
readOnly
public static final int readOnly- See Also:
-
-
Constructor Details
-
StorageType
public StorageType(int columnID, MOAccess access, org.snmp4j.smi.Integer32 defaultValue, boolean mutableInService) -
StorageType
-
-
Method Details
-
getStorageType
Gets the value of the StorageType column (if it exists) in the specified row and table. It starts searching for theStorageType
column from the last column and then proceeds down to the first until it finds it. If noStorageType
column can be found,null
is returned.- Parameters:
row
- a row with aStorageType
column (otherwisenull
is returned).table
- the table of the givenrow
.- Returns:
- the
Integer32
value of theStorageType
column in the givenrow
ornull
if the table has noStorageType
column. - Since:
- 2.7.3
-
validate
public int validate(org.snmp4j.smi.Variable newValue, org.snmp4j.smi.Variable oldValue) - Overrides:
validate
in classMOMutableColumn<org.snmp4j.smi.Integer32>
-
isVolatile
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 classMOColumn<org.snmp4j.smi.Integer32>
- Parameters:
row
- a row of the table where this column is part of.column
- the column index of this column inrow
.- Returns:
true
ifrow
should not be
-