Interface SnmpCommitListener

All Known Subinterfaces:
SnmpTable<C,IC,IT,T,R>
All Known Implementing Classes:
SnmpProxyAdapter.CommitListenerProxy, SnmpScalarImpl, SnmpTableImpl

public interface SnmpCommitListener
Implementations of SnmpCommitListener interface listen for commit events.
Author:
Frank Fock
  • Method Details

    • commitSuccess

      void commitSuccess(List<SnmpValuesChangeSet> committedChanges)
      Indication of a successful commit.
      Parameters:
      committedChanges - the list of successfully committed change sets (each change set was committed atomically for itself).
    • commitFailure

      void commitFailure(List<SnmpValuesChangeSet> failedChanges, SnmpErrorStatus errorStatus, int errorIndex)
      Indicates a failed commit operation.
      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

      org.snmp4j.smi.OctetString getContext()
      Gets the SNMP context for the commit operation.
      Returns:
      a context name (or null/empty octet string for the default context).