public final class ReadSingleFlowFuture extends ReadFlowFuture implements com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VtnDataFlow>>
ReadSingleFlowFuture describes a future associated with the task
which reads a single data flow information.| Constructor and Description |
|---|
ReadSingleFlowFuture(TxContext ctx,
TxQueue txq,
StatsReaderService srs,
GetDataFlowInput input)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable cause)
Invoked when the read operation has failed.
|
void |
onSuccess(com.google.common.base.Optional<VtnDataFlow> result)
Invoked when the read operation has completed successfully.
|
clearFlowNode, clearFlowPort, clearSourceHost, create, createOutput, getFlowNode, getFlowPort, getOutputType, getSourceHost, getStatsReaderService, notFound, select, toDataFlowInfocheckTenant, getTenantName, getTxContext, setFailure, setResultcancel, get, get, isCancelled, isDone, maskCancel, onFutureFailed, onFutureSucceeded, set, setException, setThread, unmaskCanceladdListener, done, getCause, getExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckedGet, checkedGetpublic ReadSingleFlowFuture(TxContext ctx, TxQueue txq, StatsReaderService srs, GetDataFlowInput input) throws VTNException
ctx - A TxContext instance.txq - A TxQueue instance used to update the MD-SAL
datastore.srs - The flow statistics reader service.input - Input of the RPC call.VTNException - An error occurred.public void onSuccess(@Nonnull com.google.common.base.Optional<VtnDataFlow> result)
onSuccess in interface com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VtnDataFlow>>result - An Optional instance that contains the VTN data
flow information.public void onFailure(Throwable cause)
onFailure in interface com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VtnDataFlow>>cause - A Throwable that indicates the cause of failure.Copyright © 2018 OpenDaylight. All rights reserved.