- java.lang.Object
-
- org.snmp4j.agent.mo.DefaultMOTableRow
-
- org.snmp4j.agent.mo.DefaultMOMutableRow2PC
-
- org.snmp4j.agent.mo.snmp.SnmpTargetMIB.SnmpTargetAddrEntryRow
-
- All Implemented Interfaces:
Comparable<MOTableRow>
,MOMutableRow2PC<SubRequest<?>>
,MOMutableTableRow
,MOTableRow
- Enclosing class:
- SnmpTargetMIB
public class SnmpTargetMIB.SnmpTargetAddrEntryRow extends DefaultMOMutableRow2PC
-
-
Field Summary
-
Fields inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
index, values
-
-
Constructor Summary
Constructors Constructor Description SnmpTargetAddrEntryRow(org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
<A extends org.snmp4j.smi.Address>
org.snmp4j.Target<A>getTarget(org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString contextName, A addressType)
<A extends org.snmp4j.smi.Address>
org.snmp4j.CertifiedTarget<A>getTlsTmTarget(A addr, org.snmp4j.smi.OctetString secName, org.snmp4j.smi.OID addrIndex, org.snmp4j.smi.OID paramsIndex, SnmpTlsTmMib myTlsTmMib)
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.-
Methods inherited from class org.snmp4j.agent.mo.DefaultMOMutableRow2PC
cleanup, cleanupRow, commit, getBaseRow, getIndex, getResultingValue, getUserObject, getValue, prepare, setBaseRow, setUserObject, size, toString, undo, undoRow
-
Methods inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
compareTo, equals, hashCode, toStringMembers
-
-
-
-
Method Detail
-
commitRow
public void commitRow(SubRequest<?> subRequest, MOTableRow changeSet)
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.
-
setValue
public void setValue(int column, org.snmp4j.smi.Variable value)
Description copied from interface:MOMutableTableRow
Sets the value of a column of this row.- Specified by:
setValue
in interfaceMOMutableTableRow
- Overrides:
setValue
in classDefaultMOMutableRow2PC
- Parameters:
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.
-
prepareRow
public void prepareRow(SubRequest<?> subRequest, MOTableRow changeSet)
Description copied from interface:MOMutableRow2PC
Prepares a row for changes described by the supplied change set. If the modification cannot be successfully prepared, the error status of the suppliedsubRequest
should be set to the appropriate error status value.This method is called only once per modified row.
- Specified by:
prepareRow
in interfaceMOMutableRow2PC<SubRequest<?>>
- Overrides:
prepareRow
in classDefaultMOMutableRow2PC
- Parameters:
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.
-
getAddress
public org.snmp4j.smi.Address getAddress()
-
getTAddress
public org.snmp4j.smi.OctetString getTAddress(org.snmp4j.smi.Address address)
-
getTarget
public <A extends org.snmp4j.smi.Address> org.snmp4j.Target<A> getTarget(org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString contextName, A addressType)
-
getTlsTmTarget
public <A extends org.snmp4j.smi.Address> org.snmp4j.CertifiedTarget<A> getTlsTmTarget(A addr, org.snmp4j.smi.OctetString secName, org.snmp4j.smi.OID addrIndex, org.snmp4j.smi.OID paramsIndex, SnmpTlsTmMib myTlsTmMib)
-
-