java.lang.Comparable
, RowModificationControlColumn
public class StorageType extends MOMutableColumn implements RowModificationControlColumn
Modifier and Type | Class | Description |
---|---|---|
static class |
StorageType.StorageTypeEnum |
The
StorageTypeEnum as a enumerated representastion of the StorageType SMI values. |
Modifier and Type | Field | Description |
---|---|---|
static int |
nonVolatile |
|
static int |
other |
|
static int |
permanent |
|
static int |
readOnly |
|
static int |
volatile_ |
Constructor | 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 | Description |
---|---|---|
boolean |
isVolatile(MOTableRow row,
int column) |
Checks if the row is volatile (i.e.
|
void |
prepareRow(SubRequest subRequest,
MOMutableTableRow currentRow,
MOTableRow changeSet) |
Prepares a row for changes described by the supplied change set.
|
int |
validate(org.snmp4j.smi.Variable newValue,
org.snmp4j.smi.Variable oldValue) |
compareTo, get, getAccess, getColumnID, getRestoreValue, getStoreValue, getSyntax, getTable, getValue, setAccess, setColumnID, setSyntax, setTable
addMOValueValidationListener, cleanup, commit, getDefaultValue, isMandatory, isMutableInService, prepare, removeMOValueValidationListener, setDefaultValue, setMandatory, setMutableInService, toString, undo, validateSetRequest
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 int validate(org.snmp4j.smi.Variable newValue, org.snmp4j.smi.Variable oldValue)
validate
in class MOMutableColumn
public void prepareRow(SubRequest subRequest, MOMutableTableRow currentRow, MOTableRow changeSet)
subRequest
should be set to the appropriate error
status value.
This method is called only once per modified row.
prepareRow
in interface RowModificationControlColumn
subRequest
- the sub-request that triggered the row change and that can be used
to deny the commit phase by setting its error status.currentRow
- the current row (yet unmodified).changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.public boolean isVolatile(MOTableRow row, int column)
true
for rows with storage type
readOnly
which did not follow the SMI definition of StorageType
.
See also ImportMode
for details about restore data from stable storage.isVolatile
in class MOColumn
row
- a row of the table where this column is part of.column
- the column index of this column in row
.true
if the storage type of this row is other
or volatile_
.Copyright © 2018 SNMP4J.org. All rights reserved.