public final class GetMacMappedHostFuture extends SettableVTNFuture<List<MacMappedHost>> implements com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<Vbridge>>, RpcOutputGenerator<List<MacMappedHost>,GetMacMappedHostOutput>
GetMacMappedHostFuture
describes a future associated with the task
that implements get-mac-mapped-host RPC.Constructor and Description |
---|
GetMacMappedHostFuture(TxContext ctx,
GetMacMappedHostInput input)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
GetMacMappedHostOutput |
createOutput(List<MacMappedHost> result)
Generate the output of the RPC request.
|
Class<GetMacMappedHostOutput> |
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<Vbridge> result)
Invoked when the operation that reads the target vBridge has completed
successfully.
|
cancel, get, get, isCancelled, isDone, maskCancel, onFutureFailed, onFutureSucceeded, set, setException, setThread, unmaskCancel
addListener, done, getCause, getException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkedGet, checkedGet
public GetMacMappedHostFuture(TxContext ctx, GetMacMappedHostInput input) throws RpcException
ctx
- MD-SAL datastore transaction context.input
- A GetMacMappedHostInput
instance.RpcException
- The given input contains invalid value.public void onSuccess(@Nonnull com.google.common.base.Optional<Vbridge> result)
onSuccess
in interface com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<Vbridge>>
result
- An Optional
instance that contains the target
vBridge.public void onFailure(Throwable cause)
public Class<GetMacMappedHostOutput> getOutputType()
getOutputType
in interface RpcOutputGenerator<List<MacMappedHost>,GetMacMappedHostOutput>
public GetMacMappedHostOutput createOutput(List<MacMappedHost> result)
createOutput
in interface RpcOutputGenerator<List<MacMappedHost>,GetMacMappedHostOutput>
result
- The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.