Class SnmpTargetMIB.SnmpTargetAddrEntryRow

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
  • Constructor Details

    • SnmpTargetAddrEntryRow

      public SnmpTargetAddrEntryRow(org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
  • Method Details

    • 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 supplied subRequest should be set to commitFailed. Setting this error should be avoided under any circumstances.

      This method is called only once per modified row.

      Specified by:
      commitRow in interface MOMutableRow2PC<SubRequest<?>>
      Overrides:
      commitRow in class DefaultMOMutableRow2PC
      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 interface MOMutableTableRow
      Overrides:
      setValue in class DefaultMOMutableRow2PC
      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 supplied subRequest should be set to the appropriate error status value.

      This method is called only once per modified row.

      Specified by:
      prepareRow in interface MOMutableRow2PC<SubRequest<?>>
      Overrides:
      prepareRow in class DefaultMOMutableRow2PC
      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)