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, undocompareTo, equals, hashCode, toStringMemberspublic 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)
MOMutableRow2PCprepare in interface MOMutableRow2PCprepare in class DefaultMOMutableRow2PCsubRequest - 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)
MOMutableRow2PCsubRequest 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 MOMutableRow2PCcommitRow in class DefaultMOMutableRow2PCsubRequest - 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)
MOMutableRow2PCThis method is called only once per modified row.
cleanupRow in interface MOMutableRow2PCcleanupRow in class DefaultMOMutableRow2PCsubRequest - 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)
MOMutableRow2PCThis method is called only once per modified row.
undoRow in interface MOMutableRow2PCundoRow in class DefaultMOMutableRow2PCsubRequest - 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)
MOTableRowgetValue in interface MOTableRowgetValue in class DefaultMOMutableRow2PCcolumn - the zero-based column index.public boolean containsHiddenValues()
Copyright © 2020 SNMP4J.org. All rights reserved.