T - The type of the value to be returned by the future associated
with the task.D - The type of the value to be returned by the MD-SAL DS
transaction task.public abstract class FlowModContext<T,D> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
FlowModContext(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService sfs,
VTNThreadPool thread)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
VTNFuture<T> |
getContextFuture()
Return the future associated with this context.
|
org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService |
getFlowService()
Return the MD-SAL flow service.
|
VTNThreadPool |
getFlowThread()
Return the thread used to run tasks for modifying flow entries.
|
abstract TxTask<D> |
newDatastoreTask(TxQueue txq)
Create a new MD-SAL DS task that modifies VTN data flows.
|
void |
setFailure(Throwable cause)
Set the cause of the failure of the flow modification.
|
void |
setResult(T result)
Set the result of the flow modification.
|
protected FlowModContext(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService sfs,
VTNThreadPool thread)
sfs - The MD-SAL flow service.thread - A thread pool to run tasks for modifying flow entries.public final org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService getFlowService()
SalFlowService instance.
Note that null is returned if the flow service is
already closed.public final VTNThreadPool getFlowThread()
VTNThreadPool instance.public final VTNFuture<T> getContextFuture()
VTNFuture instance associated with this context.public final void setResult(T result)
result - The result of the flow modification.public final void setFailure(Throwable cause)
cause - A Throwable that indicates the cause of failure.Copyright © 2018 OpenDaylight. All rights reserved.