T
- The type of arbitrary data to be passed to virtual nodes.public abstract class VNodeWalker<T> extends Object
VNodeWalker
describes a VTN task that walks all the virtual nodes
in the VTN model tree.Modifier | Constructor and Description |
---|---|
protected |
VNodeWalker()
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
scan(TxContext ctx,
T data)
Scan all the virtual nodes in the VTN model tree.
|
protected abstract void |
scan(TxContext ctx,
VBridge vbr,
T data)
Scan all the virtual nodes in the specified vBridge.
|
protected abstract void |
scan(TxContext ctx,
VTerminal vtm,
T data)
Scan all the virtual nodes in the specified vTerminal.
|
public final void scan(TxContext ctx, T data) throws VTNException
ctx
- A runtime context for transaction task.data
- An arbitrary data to be passed to virtual nodes.VTNException
- An error occurred.protected abstract void scan(TxContext ctx, VBridge vbr, T data) throws VTNException
ctx
- A runtime context for transaction task.vbr
- A VBridge
instance.data
- An arbitrary data to be passed to virtual nodes.VTNException
- An error occurred.protected abstract void scan(TxContext ctx, VTerminal vtm, T data) throws VTNException
ctx
- A runtime context for transaction task.vtm
- A VTerminal
instance.data
- An arbitrary data to be passed to virtual nodes.VTNException
- An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.