public final class FlowCountFuture extends AbstractReadFlowFuture<Integer> implements com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VtnFlowTable>>, RpcOutputGenerator<Integer,GetDataFlowCountOutput>
FlowCountFuture describes a future associated with the task which
retrieves the number of data flows present in the specified VTN.| Modifier and Type | Method and Description |
|---|---|
static FlowCountFuture |
create(TxContext ctx,
GetDataFlowCountInput input)
Construct a new instance.
|
GetDataFlowCountOutput |
createOutput(Integer result)
Generate the output of the RPC request.
|
Class<GetDataFlowCountOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
void |
onFailure(Throwable cause)
Invoked when the read operation has failed.
|
void |
onSuccess(com.google.common.base.Optional<VtnFlowTable> result)
Invoked when the read operation has completed successfully.
|
checkTenant, 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 static FlowCountFuture create(TxContext ctx, GetDataFlowCountInput input) throws RpcException
ctx - A TxContext instance.input - Input of the RPC call.FlowCountFuture instance.RpcException - An error occurred.public void onSuccess(@Nonnull com.google.common.base.Optional<VtnFlowTable> result)
onSuccess in interface com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VtnFlowTable>>result - An Optional instance that contains the VTN flow
table.public void onFailure(Throwable cause)
onFailure in interface com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VtnFlowTable>>cause - A Throwable that indicates the cause of failure.public Class<GetDataFlowCountOutput> getOutputType()
getOutputType in interface RpcOutputGenerator<Integer,GetDataFlowCountOutput>public GetDataFlowCountOutput createOutput(Integer result)
createOutput in interface RpcOutputGenerator<Integer,GetDataFlowCountOutput>result - The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.