public final class StaticTopologyManager extends MultiDataStoreListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask> implements VTNSubSystem
StaticTopologyManager manages the static network topology
configured by user.| Modifier and Type | Method and Description |
|---|---|
protected org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask |
enterEvent()
Invoked when
AbstractDataChangeListener.onDataTreeChanged(Collection) has just been
called. |
protected void |
exitEvent(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx)
Invoked when
AbstractDataChangeListener.onDataTreeChanged(Collection) is going to leave. |
protected org.slf4j.Logger |
getLogger()
Return a logger instance.
|
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VtnStaticTopology> |
getWildcardPath()
Return a wildcard instance identifier that specifies data objects
to be listened.
|
VTNFuture<?> |
initConfig(boolean master)
Post a MD-SAL datastore transaction task that initializes the
configuration.
|
void |
initRpcServices(org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcReg,
CompositeAutoCloseable regs)
Register RPC implementation required by the subsystem.
|
protected boolean |
isDepth(VtnUpdateType type)
Return a boolean value which specifies the order of tree traversal.
|
protected boolean |
isRequiredType(Class<?> type)
Determine whether the specified type of the tree node is required
to be notified or not.
|
protected boolean |
isUpdated(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
ChangedData<?> data)
Determine whether the specified data was updated or not.
|
protected void |
onCreated(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
IdentifiedData<?> data)
Invoked when a new data has been created in the datastore.
|
protected void |
onRemoved(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
IdentifiedData<?> data)
Invoked when a data has been removed from the datastore.
|
protected void |
onUpdated(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
ChangedData<?> data)
Invoked when a data in the datastore has been updated.
|
handleTree, isLeafNodecheckPath, getTargetType, isRequiredEvent, nullValue, onDataTreeChanged, registerListeneraddCloseable, closeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected boolean isDepth(VtnUpdateType type)
isDepth in class MultiDataStoreListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>type - A VtnUpdateType instance which specifies the type
of event.true means that each tree node's children need to be
processed after the tree node itself (from outer to innter).
false means that each tree node's children need to be
processed before the tree node itself (from inner to outer).protected boolean isRequiredType(@Nonnull Class<?> type)
isRequiredType in class MultiDataStoreListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>type - A class that specifies the type of the tree node.true if the specified type of the tree node needs
to be notified. false otherwise.protected boolean isUpdated(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
ChangedData<?> data)
MultiDataStoreListener.onUpdated(Object, ChangedData) is called only if this method
returns true.
This method is called only if MultiDataStoreListener.isRequiredType(Class) with
specifying type returns true.
isUpdated in class MultiDataStoreListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>ectx - An event context created by this instance.data - A ChangedData instance which contains the
changed data.true if the target data was updated.
false otherwise.protected org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask enterEvent()
AbstractDataChangeListener.onDataTreeChanged(Collection) has just been
called.enterEvent in class AbstractDataChangeListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>protected void exitEvent(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx)
AbstractDataChangeListener.onDataTreeChanged(Collection) is going to leave.
Note that this method may be called even if no modified data was notified.
exitEvent in class AbstractDataChangeListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>ectx - An event context created by AbstractDataChangeListener.enterEvent().protected void onCreated(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
IdentifiedData<?> data)
onCreated in class MultiDataStoreListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>ectx - An event context created by this instance.data - An IdentifiedData instance which contains the
created data.protected void onUpdated(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
ChangedData<?> data)
onUpdated in class MultiDataStoreListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>ectx - An event context created by this instance.data - A ChangedData instance which contains the
changed data.protected void onRemoved(org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask ectx,
IdentifiedData<?> data)
onRemoved in class MultiDataStoreListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>ectx - An event context created by this instance.data - An IdentifiedData instance which contains the
removed data.protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<VtnStaticTopology> getWildcardPath()
getWildcardPath in class AbstractDataChangeListener<VtnStaticTopology,org.opendaylight.vtn.manager.internal.inventory.StaticLinkUpdateTask>protected org.slf4j.Logger getLogger()
Note that this method will be called before the constructor returns.
getLogger in class CloseableContainerLogger instance.public VTNFuture<?> initConfig(boolean master)
initConfig in interface VTNSubSystemmaster - true if the local node is the configuration
provider.VTNFuture instance associated with the task for
initialization. null means that there is nothing to
do on initialization.public void initRpcServices(org.opendaylight.controller.sal.binding.api.RpcProviderRegistry rpcReg,
CompositeAutoCloseable regs)
initRpcServices in interface VTNSubSystemrpcReg - A RpcProviderRegistry service instance.regs - A CompositeAutoCloseable instance to store
RPC registration.Copyright © 2018 OpenDaylight. All rights reserved.