public class MOMutableColumn<V extends org.snmp4j.smi.Variable> extends MOColumn<V>
MOMutableColumn class represents mutable columnar SMI
objects. It represents all instances of a table's column not only a
single instance (cell).
Objects represented by MOMutableColumn can be modified via SNMP,
thus MOColumn supports read-only, read-write, and read-create
maximum access.
MOColumn| Constructor and Description |
|---|
MOMutableColumn(int columnID,
int syntax)
Creates a read-only column object with the given column and syntax.
|
MOMutableColumn(int columnID,
int syntax,
MOAccess access)
Creates a column object with the given column, syntax, and maximum access.
|
MOMutableColumn(int columnID,
int syntax,
MOAccess access,
org.snmp4j.smi.Variable defaultValue)
Creates a column object with the given column, syntax, and maximum access.
|
MOMutableColumn(int columnID,
int syntax,
MOAccess access,
org.snmp4j.smi.Variable defaultValue,
boolean mutableInService)
Creates a column object with the given column, syntax, and maximum access.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMOValueValidationListener(MOValueValidationListener validator) |
void |
cleanup(SubRequest subRequest,
MOTableRow row,
int column) |
void |
commit(SubRequest subRequest,
MOTableRow row,
MOTableRow changeSet,
int column) |
org.snmp4j.smi.Variable |
getDefaultValue() |
boolean |
isMandatory()
Returns
true if this column must be specified in a SET
request which creates a row. |
boolean |
isMutableInService() |
void |
prepare(SubRequest subRequest,
MOTableRow row,
MOTableRow changeSet,
int column) |
void |
removeMOValueValidationListener(MOValueValidationListener validator) |
void |
setDefaultValue(org.snmp4j.smi.Variable defaultValue) |
void |
setMandatory(boolean mandatory)
Sets a flag that determines if this column must be specified in a SET
request which creates a row.
|
void |
setMutableInService(boolean mutableInService) |
String |
toString() |
void |
undo(SubRequest subRequest,
MOTableRow row,
int column) |
int |
validate(org.snmp4j.smi.Variable newValue,
org.snmp4j.smi.Variable oldValue) |
protected boolean |
validateSetRequest(SubRequest subRequest,
MOTableRow row,
int column) |
compareTo, get, getAccess, getColumnID, getRestoreValue, getStoreValue, getSyntax, getTable, getValue, isVolatile, setAccess, setColumnID, setSyntax, setTablepublic MOMutableColumn(int columnID,
int syntax)
columnID - the column ID which is ID the last sub-identifier of the corresponding
OBJECT-TYPE definition.syntax - the syntax of the objects in this column. See SMIConstants for
possible values.public MOMutableColumn(int columnID,
int syntax,
MOAccess access)
MOColumn only supports read-only columns the only
reasonable values for access are 'not-accessible' and
'read-only'. Generally this constructor should not be called directly.columnID - the column ID which is ID the last sub-identifier of the corresponding
OBJECT-TYPE definition.syntax - the syntax of the objects in this column. See SMIConstants for
possible values.access - the maximum access of the column.public MOMutableColumn(int columnID,
int syntax,
MOAccess access,
org.snmp4j.smi.Variable defaultValue)
MOColumn only supports read-only columns the only
reasonable values for access are 'not-accessible' and
'read-only'. Generally this constructor should not be called directly.columnID - the column ID which is ID the last sub-indentifer of the corresponding
OBJECT-TYPE definition.syntax - the syntax of the objects in this column. See SMIConstants for
possible values.access - the maximum access of the column.defaultValue - the default value for new rows.public MOMutableColumn(int columnID,
int syntax,
MOAccess access,
org.snmp4j.smi.Variable defaultValue,
boolean mutableInService)
MOColumn only supports read-only columns the only
reasonable values for access are 'not-accessible' and
'read-only'. Generally this constructor should not be called directly.columnID - the column ID which is ID the last sub-indentifer of the corresponding
OBJECT-TYPE definition.syntax - the syntax of the objects in this column. See SMIConstants for
possible values.access - the maximum access of the column.defaultValue - the default value for new rows.mutableInService - if true this column accepts value changes through SNMP
(via prepare(org.snmp4j.agent.request.SubRequest, MOTableRow, MOTableRow, int) and
commit(org.snmp4j.agent.request.SubRequest, MOTableRow, MOTableRow, int) while the
rows RowStatus object is in state
RowStatus.active. Otherwise, such an operation will result
in a PDU.inconsistentValue error.public void addMOValueValidationListener(MOValueValidationListener validator)
public void removeMOValueValidationListener(MOValueValidationListener validator)
public int validate(org.snmp4j.smi.Variable newValue,
org.snmp4j.smi.Variable oldValue)
protected boolean validateSetRequest(SubRequest subRequest, MOTableRow row, int column)
public void prepare(SubRequest subRequest, MOTableRow row, MOTableRow changeSet, int column)
public void commit(SubRequest subRequest, MOTableRow row, MOTableRow changeSet, int column)
public void undo(SubRequest subRequest, MOTableRow row, int column)
public void cleanup(SubRequest subRequest, MOTableRow row, int column)
public void setDefaultValue(org.snmp4j.smi.Variable defaultValue)
public void setMutableInService(boolean mutableInService)
public org.snmp4j.smi.Variable getDefaultValue()
public boolean isMutableInService()
public boolean isMandatory()
true if this column must be specified in a SET
request which creates a row.true if this row has a maximum access of READ-CREATE and
has a null default value, false otherwise.public void setMandatory(boolean mandatory)
true.mandatory - if true and a row has a maximum access of READ-CREATE and
has a null default value, then it must be provided in
order to activate the row.Copyright © 2020 SNMP4J.org. All rights reserved.