public class UsmMIB.UsmTableRow extends DefaultMOMutableRow2PC
index, values
Constructor and Description |
---|
UsmTableRow(UsmMIB.UsmTableModel model,
org.snmp4j.smi.OID index,
org.snmp4j.smi.Variable[] values) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupRow(SubRequest subRequest,
DefaultMOTable.ChangeSet changeSet)
Cleans up resources for a row.
|
void |
commitRow(SubRequest subRequest,
MOTableRow changeSet)
Commits a row as described by the supplied change set.
|
boolean |
containsHiddenValues() |
org.snmp4j.security.AuthenticationProtocol |
getAuthProtocol(MOTableRow changeSet) |
org.snmp4j.smi.OID |
getAuthProtocolOID(MOTableRow changeSet)
Gets the OID of the authentication protocol defined by the given
change set.
|
MOTableIndex |
getIndexDef() |
org.snmp4j.security.PrivacyProtocol |
getPrivProtocol(MOTableRow changeSet) |
org.snmp4j.smi.OID |
getPrivProtocolOID(MOTableRow preparedChanges)
Gets the OID of the privacy protocol defined by the given
change set.
|
org.snmp4j.smi.Variable |
getValue(int column)
Gets the value at the specified column index.
|
boolean |
isCloned() |
void |
prepare(SubRequest subRequest,
MOTableRow preparedChanges,
int column)
Prepares changing a single column.
|
void |
setCloned(boolean cloned) |
void |
undoRow(SubRequest subRequest,
DefaultMOTable.ChangeSet changeSet)
Undos changes to a row.
|
cleanup, commit, getBaseRow, getIndex, getResultingValue, getUserObject, prepareRow, setBaseRow, setUserObject, setValue, size, toString, undo
compareTo, equals, hashCode, toStringMembers
public UsmTableRow(UsmMIB.UsmTableModel model, org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
public void setCloned(boolean cloned)
public boolean isCloned()
public MOTableIndex getIndexDef()
public org.snmp4j.security.AuthenticationProtocol getAuthProtocol(MOTableRow changeSet)
public org.snmp4j.security.PrivacyProtocol getPrivProtocol(MOTableRow changeSet)
public org.snmp4j.smi.OID getPrivProtocolOID(MOTableRow preparedChanges)
UsmMIB.noPrivProtocol
null
is returned.preparedChanges
- a TableRow instance with UsmTableRow values.null
if no
privacy protocol is defined by changeSet
.public void prepare(SubRequest subRequest, MOTableRow preparedChanges, int column)
MOMutableRow2PC
prepare
in interface MOMutableRow2PC
prepare
in class DefaultMOMutableRow2PC
subRequest
- the sub-request that corresponds to the column change. This object
can be used to deny the commit phase by setting its error status.preparedChanges
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.column
- the column index of the column to be changed.public void commitRow(SubRequest subRequest, MOTableRow changeSet)
MOMutableRow2PC
subRequest
should be set to
commitFailed
. Setting this error should be avoided under
any circumstances.
This method is called only once per modified row.
commitRow
in interface MOMutableRow2PC
commitRow
in class DefaultMOMutableRow2PC
subRequest
- the sub-request that triggered the row change and that can be used
to trigger the undo phase by setting its error status.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.public org.snmp4j.smi.OID getAuthProtocolOID(MOTableRow changeSet)
UsmMIB.noAuthProtocol
null
is returned.changeSet
- a TableRow instance with UsmTableRow values.null
if no
authentication protocol is defined by changeSet
.public void cleanupRow(SubRequest subRequest, DefaultMOTable.ChangeSet changeSet)
MOMutableRow2PC
This method is called only once per modified row.
cleanupRow
in interface MOMutableRow2PC
cleanupRow
in class DefaultMOMutableRow2PC
subRequest
- the sub-request that triggered the row change.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.public void undoRow(SubRequest subRequest, DefaultMOTable.ChangeSet changeSet)
MOMutableRow2PC
This method is called only once per modified row.
undoRow
in interface MOMutableRow2PC
undoRow
in class DefaultMOMutableRow2PC
subRequest
- the sub-request that triggered the row change.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.public org.snmp4j.smi.Variable getValue(int column)
MOTableRow
getValue
in interface MOTableRow
getValue
in class DefaultMOMutableRow2PC
column
- the zero-based column index.public boolean containsHiddenValues()
Copyright © 2019 SNMP4J.org. All rights reserved.