java.lang.Object
org.snmp4j.agent.mo.DefaultMOTableRow
org.snmp4j.agent.mo.DefaultMOMutableRow2PC
org.snmp4j.agent.mo.snmp.UsmMIB.UsmTableRow
- All Implemented Interfaces:
Comparable<MOTableRow>
,MOMutableRow2PC<SubRequest<?>>
,MOMutableTableRow
,MOTableRow
- Enclosing class:
UsmMIB
-
Field Summary
Fields inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
index, values
-
Constructor Summary
ConstructorDescriptionUsmTableRow
(UsmMIB.UsmTableModel model, org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanupRow
(SubRequest<?> subRequest, DefaultMOTable.ChangeSet changeSet) Cleans up resources for a row.void
void
commitRow
(SubRequest<?> subRequest, MOTableRow changeSet) Commits a row as described by the supplied change set.boolean
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.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) Undoes changes to a row.Methods inherited from class org.snmp4j.agent.mo.DefaultMOMutableRow2PC
cleanup, commit, getBaseRow, getIndex, getResultingValue, getUserObject, prepareRow, setBaseRow, setUserObject, setValue, size, toString, undo
Methods inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
compareTo, equals, getColumnValue, hashCode, toStringMembers
-
Constructor Details
-
UsmTableRow
public UsmTableRow(UsmMIB.UsmTableModel model, org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
-
-
Method Details
-
setCloned
public void setCloned(boolean cloned) -
isCloned
public boolean isCloned() -
getIndexDef
-
getAuthProtocol
-
getPrivProtocol
-
getPrivProtocolOID
Gets the OID of the privacy protocol defined by the given change set. If the change set definesUsmMIB.noPrivProtocol
null
is returned.- Parameters:
preparedChanges
- a TableRow instance with UsmTableRow values.- Returns:
- a privacy protocol OID or
null
if no privacy protocol is defined bychangeSet
.
-
prepare
Description copied from interface:MOMutableRow2PC
Prepares changing a single column.- Specified by:
prepare
in interfaceMOMutableRow2PC<SubRequest<?>>
- Overrides:
prepare
in classDefaultMOMutableRow2PC
- Parameters:
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.
-
commitRow
Description copied from interface:MOMutableRow2PC
Commits a row as described by the supplied change set. If the modification cannot be successfully committed, the error status of the suppliedsubRequest
should be set tocommitFailed
. Setting this error should be avoided under any circumstances.This method is called only once per modified row.
- Specified by:
commitRow
in interfaceMOMutableRow2PC<SubRequest<?>>
- Overrides:
commitRow
in classDefaultMOMutableRow2PC
- Parameters:
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.
-
getAuthProtocolOID
Gets the OID of the authentication protocol defined by the given change set. If the change set definesUsmMIB.noAuthProtocol
null
is returned.- Parameters:
changeSet
- a TableRow instance with UsmTableRow values.- Returns:
- an authentication protocol OID or
null
if no authentication protocol is defined bychangeSet
.
-
cleanupRow
Description copied from interface:MOMutableRow2PC
Cleans up resources for a row.This method is called only once per modified row.
- Specified by:
cleanupRow
in interfaceMOMutableRow2PC<SubRequest<?>>
- Overrides:
cleanupRow
in classDefaultMOMutableRow2PC
- Parameters:
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.
-
undoRow
Description copied from interface:MOMutableRow2PC
Undoes changes to a row.This method is called only once per modified row.
- Specified by:
undoRow
in interfaceMOMutableRow2PC<SubRequest<?>>
- Overrides:
undoRow
in classDefaultMOMutableRow2PC
- Parameters:
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.
-
getValue
public org.snmp4j.smi.Variable getValue(int column) Description copied from interface:MOTableRow
Gets the value at the specified column index.- Specified by:
getValue
in interfaceMOTableRow
- Overrides:
getValue
in classDefaultMOMutableRow2PC
- Parameters:
column
- the zero-based column index.- Returns:
- the value at the specified index.
-
containsHiddenValues
public boolean containsHiddenValues() -
clearKeyChangeObjects
public void clearKeyChangeObjects()
-