public final class SendBarrierRpc extends NodeRpcInvocation<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.SendBarrierInput,Void> implements com.google.common.util.concurrent.FutureCallback<org.opendaylight.yangtools.yang.common.RpcResult<Void>>
SendBarrierRpc describes an invocation of send-barrier RPC provided
by the flow-capable-transaction service.| Constructor and Description |
|---|
SendBarrierRpc(NodeRpcWatcher w,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.FlowCapableTransactionService fcts,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.SendBarrierInput in)
Issue a send-barrier RPC request.
|
| Modifier and Type | Method and Description |
|---|---|
static SendBarrierRpc |
create(NodeRpcWatcher w,
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.FlowCapableTransactionService fcts,
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef node)
Send a barrier request to the specified node.
|
String |
getName()
Return the name of the RPC.
|
void |
onFailure(Throwable t)
Invoked when a barrier request has failed.
|
void |
onSuccess(org.opendaylight.yangtools.yang.common.RpcResult<Void> result)
Invoked when a barrier request has been processed successfully.
|
complete, getNode, getNodeRpcWatcher, getResult, isDisconnected, isNodeRemoved, needErrorLog, needErrorLog, onNodeRemoved, startgetFuture, getInput, getInputForLogpublic SendBarrierRpc(NodeRpcWatcher w, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.FlowCapableTransactionService fcts, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.SendBarrierInput in)
w - The node RPC watcher.fcts - MD-SAL flow-capable-transaction service.in - The RPC input.public static SendBarrierRpc create(NodeRpcWatcher w, org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev150304.FlowCapableTransactionService fcts, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef node)
w - The node RPC watcher.fcts - MD-SAL flow-capable-transaction service.node - Reference to the target node.SendBarrierRpc instance.public String getName()
getName in interface RpcRequestpublic void onSuccess(org.opendaylight.yangtools.yang.common.RpcResult<Void> result)
onSuccess in interface com.google.common.util.concurrent.FutureCallback<org.opendaylight.yangtools.yang.common.RpcResult<Void>>result - The result of the send-barrier RPC.Copyright © 2018 OpenDaylight. All rights reserved.