Interface SnmpCommitResult<T>

All Known Implementing Classes:
CommitStatus

public interface SnmpCommitResult<T>
The SnmpCommitResult class provides information about the success or failure of a TransactionManager.commit(SnmpTransaction, SnmpCommitListener) operation.
Author:
Frank Fock
  • Method Details

    • isSuccess

      boolean isSuccess()
      Returns true if the commit operation succeeded.
      Returns:
      true if the commit operation succeeded, false if a timeout, IO exception, or SNMP error occurred.
    • getErrorStatus

      SnmpErrorStatus getErrorStatus()
    • getFailedChanges

      List<SnmpValuesChangeSet> getFailedChanges()
    • getCommittedChanges

      List<SnmpValuesChangeSet> getCommittedChanges()
    • getErrorIndex

      int getErrorIndex()
      Gets the error index of the SNMP error (if > 0) that points to the VariableBinding in getFailedChanges() that caused the error.
      Returns:
      0 if no specific variable binding caused an error or a value > 0 that points to the n-th variable binding in getFailedChanges() that caused the error.