Package org.snmp4j.model.snmp.proxy.impl
Class SnmpProxyAdapter.CommitListenerProxy
java.lang.Object
org.snmp4j.model.snmp.proxy.impl.SnmpProxyAdapter.CommitListenerProxy
- All Implemented Interfaces:
SnmpCommitListener
- Enclosing class:
- SnmpProxyAdapter
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
CommitListenerProxy
-
-
Method Details
-
commitSuccess
Description copied from interface:SnmpCommitListener
Indication of a successful commit.- Specified by:
commitSuccess
in interfaceSnmpCommitListener
- 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 interfaceSnmpCommitListener
- 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 interfaceSnmpCommitListener
- Returns:
- a context name (or
null
/empty octet string for the default context).
-