Class SnmpProxyAdapter.CommitListenerProxy

java.lang.Object
org.snmp4j.model.snmp.proxy.impl.SnmpProxyAdapter.CommitListenerProxy
All Implemented Interfaces:
SnmpCommitListener
Enclosing class:
SnmpProxyAdapter

protected class SnmpProxyAdapter.CommitListenerProxy extends Object implements SnmpCommitListener
  • Constructor Details

  • Method Details

    • commitSuccess

      public void commitSuccess(List<SnmpValuesChangeSet> committedChanges)
      Description copied from interface: SnmpCommitListener
      Indication of a successful commit.
      Specified by:
      commitSuccess in interface SnmpCommitListener
      Parameters:
      committedChanges - the list of successfully committed change sets (each change set was committed atomically for itself).
    • commitFailure

      public void commitFailure(List<SnmpValuesChangeSet> failedChanges, SnmpErrorStatus errorStatus, int errorIndex)
      Description copied from interface: SnmpCommitListener
      Indicates a failed commit operation.
      Specified by:
      commitFailure in interface SnmpCommitListener
      Parameters:
      failedChanges - the changes that failed to commit (none of the changes within a single change set must have been committed, if the change set was small enough to be committed atomically).
      errorStatus - the SNMP error status of the first failed change set.
      errorIndex - the index in the original list of changes committed that failed (zero based).
    • getContext

      public org.snmp4j.smi.OctetString getContext()
      Description copied from interface: SnmpCommitListener
      Gets the SNMP context for the commit operation.
      Specified by:
      getContext in interface SnmpCommitListener
      Returns:
      a context name (or null/empty octet string for the default context).