Package org.snmp4j.model.snmp.spi
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 Summary
Modifier and TypeMethodDescriptionint
Gets the error index of the SNMP error (if > 0) that points to theVariableBinding
ingetFailedChanges()
that caused the error.boolean
Returnstrue
if the commit operation succeeded.
-
Method Details
-
isSuccess
boolean isSuccess()Returnstrue
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 theVariableBinding
ingetFailedChanges()
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.
-