C
- The type of MapCleaner
that purges network caches.public abstract class VirtualMapRegistry<C extends MapCleaner> extends Object
VirtualMapRegistry
describes a base context for registering virtual
network mapping.Modifier | Constructor and Description |
---|---|
protected |
VirtualMapRegistry(TxContext ctx)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMapCleaner(String tname,
C cl)
Associate the specified
MapCleaner instance with the specified
VTN name. |
protected void |
cleanUp()
Clean up the transaction for changing virtual network mapping.
|
protected abstract void |
cleanUpImpl(TxContext ctx)
Clean up the transaction for changing virtual network mapping.
|
TxContext |
getContext()
Return the runtime context for the MD-SAL datastore transaction.
|
protected C |
getMapCleaner(String name)
Return a
MapCleaner instance associated with the specified VTN. |
protected VirtualMapRegistry(TxContext ctx)
ctx
- A runtime context for transaction task.public final TxContext getContext()
TxContext
instance.protected final void cleanUp() throws VTNException
VTNException
- An error occurred.protected final C getMapCleaner(String name)
MapCleaner
instance associated with the specified VTN.name
- The name of the target VTN.MapCleaner
instance if found.
null
is returned if not found.protected final void addMapCleaner(String tname, C cl)
MapCleaner
instance with the specified
VTN name.tname
- The name of the VTN.cl
- A MapCleaner
instance.protected abstract void cleanUpImpl(TxContext ctx) throws VTNException
ctx
- A runtime context for transaction task.VTNException
- An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.