public interface DataBrokerFailures
| Modifier and Type | Method and Description |
|---|---|
void |
failButSubmitsAnyways()
To simulate scenarios where even though the transaction throws a
TransactionCommitFailedException (caused by
akka.pattern.AskTimeoutException) it eventually succeeds.
|
void |
failReads(int howManyTimes,
org.opendaylight.controller.md.sal.common.api.data.ReadFailedException exception)
Fails N future reads.
|
void |
failReads(org.opendaylight.controller.md.sal.common.api.data.ReadFailedException exception)
Fails all future reads.
|
void |
failSubmits(int howManyTimes,
org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException exception)
Fails N future Transaction submits.
|
void |
failSubmits(org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException exception)
Fails all future Transaction submits.
|
void |
unfailReads()
Resets any earlier
failReads(ReadFailedException) or failReads(int, ReadFailedException). |
void |
unfailSubmits()
Resets any earlier
failSubmits(TransactionCommitFailedException) or
failSubmits(int, TransactionCommitFailedException). |
void failReads(org.opendaylight.controller.md.sal.common.api.data.ReadFailedException exception)
exception - a ReadFailedException to throw from a
ReadTransaction.read(LogicalDatastoreType, InstanceIdentifier) call.void failReads(int howManyTimes,
org.opendaylight.controller.md.sal.common.api.data.ReadFailedException exception)
howManyTimes - how many times to throw the passed exception, until it resets.exception - a ReadFailedException to throw from a
ReadTransaction.read(LogicalDatastoreType, InstanceIdentifier) call.void failSubmits(org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException exception)
exception - an Exception to throw from a AsyncWriteTransaction.submit()
(also AsyncWriteTransaction.submit()) methodvoid failSubmits(int howManyTimes,
org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException exception)
howManyTimes - how many times to throw the passed exception, until it resetsexception - an Exception to throw from a AsyncWriteTransaction.submit()
(also AsyncWriteTransaction.submit()) methodvoid failButSubmitsAnyways()
void unfailReads()
failReads(ReadFailedException) or failReads(int, ReadFailedException).void unfailSubmits()
failSubmits(TransactionCommitFailedException) or
failSubmits(int, TransactionCommitFailedException).Copyright © 2019 OpenDaylight. All rights reserved.