public class StorageType extends MOMutableColumn<org.snmp4j.smi.Integer32>
Modifier and Type | Field and Description |
---|---|
static int |
nonVolatile |
static int |
other |
static int |
permanent |
static int |
readOnly |
static int |
volatile_ |
Constructor and Description |
---|
StorageType(int columnID,
MOAccess access,
org.snmp4j.smi.Integer32 defaultValue) |
StorageType(int columnID,
MOAccess access,
org.snmp4j.smi.Integer32 defaultValue,
boolean mutableInService) |
Modifier and Type | Method and Description |
---|---|
static 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) |
addMOValueValidationListener, cleanup, commit, getDefaultValue, isMandatory, isMutableInService, prepare, removeMOValueValidationListener, setDefaultValue, setMandatory, setMutableInService, toString, undo, validateSetRequest
compareTo, get, getAccess, getColumnID, getRestoreValue, getStoreValue, getSyntax, getTable, getValue, setAccess, setColumnID, setSyntax, setTable
public static final int other
public static final int volatile_
public static final int nonVolatile
public static final int permanent
public static final int readOnly
public StorageType(int columnID, MOAccess access, org.snmp4j.smi.Integer32 defaultValue, boolean mutableInService)
public StorageType(int columnID, MOAccess access, org.snmp4j.smi.Integer32 defaultValue)
public static org.snmp4j.smi.Integer32 getStorageType(MOTableRow<?> row, MOTable<?,?,?> table)
StorageType
column from the last column and then proceeds down to the first
until it finds it. If no StorageType
column can be found, null
is returned.row
- a row with a StorageType
column (otherwise null
is returned).table
- the table of the given row
.Integer32
value of the StorageType
column in the given row
or null
if
the table has no StorageType
column.public int validate(org.snmp4j.smi.Variable newValue, org.snmp4j.smi.Variable oldValue)
validate
in class MOMutableColumn<org.snmp4j.smi.Integer32>
public boolean isVolatile(MOTableRow<org.snmp4j.smi.Integer32> row, int column)
MOColumn
isVolatile
in class MOColumn<org.snmp4j.smi.Integer32>
row
- a row of the table where this column is part of.column
- the column index of this column in row
.true
if row
should not beCopyright © 2020 SNMP4J.org. All rights reserved.