java.lang.Comparable
, MOMutableRow2PC
, MOMutableTableRow
, MOTableRow
public class SnmpTargetMIB.SnmpTargetAddrEntryRow extends DefaultMOMutableRow2PC
index, values
Constructor | Description |
---|---|
SnmpTargetAddrEntryRow(org.snmp4j.smi.OID index,
org.snmp4j.smi.Variable[] values) |
Modifier and Type | Method | Description |
---|---|---|
void |
commitRow(SubRequest subRequest,
MOTableRow changeSet) |
Commits a row as described by the supplied change set.
|
org.snmp4j.smi.Address |
getAddress() |
|
org.snmp4j.smi.OctetString |
getTAddress(org.snmp4j.smi.Address address) |
|
org.snmp4j.Target |
getTarget(org.snmp4j.smi.OctetString contextEngineID,
org.snmp4j.smi.OctetString contextName) |
|
void |
prepareRow(SubRequest subRequest,
MOTableRow changeSet) |
Prepares a row for changes described by the supplied change set.
|
void |
setValue(int column,
org.snmp4j.smi.Variable value) |
Sets the value of a column of this row.
|
cleanup, cleanupRow, commit, getBaseRow, getIndex, getResultingValue, getUserObject, getValue, prepare, setBaseRow, setUserObject, size, toString, undo, undoRow
compareTo, equals, hashCode, toStringMembers
public SnmpTargetAddrEntryRow(org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
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 void setValue(int column, org.snmp4j.smi.Variable value)
MOMutableTableRow
setValue
in interface MOMutableTableRow
setValue
in class DefaultMOMutableRow2PC
column
- the (zero-based) column index.value
- the new value for the specified column. Implementations of this method
may not check the value's type to match the columns type for performance
reasons. Thus, the caller have to make sure that the type's match to
avoid runtime exceptions later.public void prepareRow(SubRequest subRequest, MOTableRow changeSet)
MOMutableRow2PC
subRequest
should be set to the appropriate error
status value.
This method is called only once per modified row.
prepareRow
in interface MOMutableRow2PC
prepareRow
in class DefaultMOMutableRow2PC
subRequest
- the sub-request that triggered the row change and that can be used
to deny the commit 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.Address getAddress()
public org.snmp4j.smi.OctetString getTAddress(org.snmp4j.smi.Address address)
public org.snmp4j.Target getTarget(org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString contextName)
Copyright © 2018 SNMP4J.org. All rights reserved.