SnmpService
LocalSnmpService
, SNMP4JAgentSnmpService
public interface TransactionManager
Modifier and Type | Method | Description |
---|---|---|
List<? extends SnmpCommitResult> |
commit(SnmpTransaction transaction,
SnmpCommitListener commitListener) |
Commits the transaction to the agent.
|
SnmpTransaction |
getSnmpTransaction(SnmpTransactionStrategy transactionStrategy) |
|
boolean |
isAtomic(SnmpTransaction transaction) |
Checks if this transaction can be committed with atomicity.
|
void |
rollback(SnmpTransaction transaction) |
List<? extends SnmpCommitResult> commit(SnmpTransaction transaction, SnmpCommitListener commitListener)
transaction
- the transaction to commit.commitListener
- the optional listener that is immediately informed during this commit call about
failures and successful committed change sets.SnmpErrorStatus
indicating success or failure reason
of the transaction.void rollback(SnmpTransaction transaction)
SnmpTransaction getSnmpTransaction(SnmpTransactionStrategy transactionStrategy)
boolean isAtomic(SnmpTransaction transaction)
false
.transaction
- the transaction to test.true
if this transaction can be committed by using a single
SET PDU. Thus, the variables to set do not exceed the target's maximum
size PDU length (including estimated SNMP message overhead).Copyright © 2020 SNMP4J.org. All rights reserved.