Package org.snmp4j.model.snmp.proxy
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 Summary
Modifier and TypeMethodDescriptionvoid
commitFailure
(List<SnmpValuesChangeSet> failedChanges, SnmpErrorStatus errorStatus, int errorIndex) Indicates a failed commit operation.void
commitSuccess
(List<SnmpValuesChangeSet> committedChanges) Indication of a successful commit.org.snmp4j.smi.OctetString
Gets the SNMP context for the commit operation.
-
Method Details
-
commitSuccess
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).
-