T - The type of MD-SAL container associated with this class.public abstract class XmlStaticTopologyConfig<T extends org.opendaylight.yangtools.yang.binding.ChildOf<VtnStaticTopology>> extends Object
XmlStaticTopologyConfig describes a XML file which specifies the
static network topology configuration.| Modifier | Constructor and Description |
|---|---|
protected |
XmlStaticTopologyConfig()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract T |
getConfig()
Return a MD-SAL container which contains the configuration in this
instance.
|
abstract Class<T> |
getContainerType()
Return a class which indicates the type of MD-SAL container associated
with this class.
|
abstract String |
getXmlConfigKey()
Return a string which represents the configuration file key associated
with this class.
|
abstract Class<? extends XmlStaticTopologyConfig<T>> |
getXmlType()
Return a class which indicates the type of this class.
|
void |
load(VtnStaticTopologyBuilder builder,
org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction tx)
Load the static network topology configuration from XML file.
|
abstract XmlStaticTopologyConfig<T> |
newInstance(T conf)
Construct a new instance that contains the given configuration.
|
void |
save(T conf)
Save the given static network topology configuration into the XML file.
|
abstract void |
setConfig(VtnStaticTopologyBuilder builder,
T conf)
Set the given configuration into the given MD-SAL container builder
instance.
|
protected XmlStaticTopologyConfig()
public final void load(VtnStaticTopologyBuilder builder, org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction tx) throws VTNException
This method loads the configuration from the XML file, and store
loaded configuration into the MD-SAL config DS and the given
VtnStaticTopologyBuilder instance.
builder - A VtnStaticTopologyBuilder instance.tx - A ReadWriteTransaction instance.VTNException - An error occurred.public final void save(T conf)
conf - A MD-SAL container which contains the configuration to be
saved. null means that the configuration file
should be deleted.public abstract Class<T> getContainerType()
public abstract Class<? extends XmlStaticTopologyConfig<T>> getXmlType()
public abstract String getXmlConfigKey()
public abstract void setConfig(VtnStaticTopologyBuilder builder, T conf)
builder - A VtnStaticTopologyBuilder instance.conf - A MD-SAL container which contains the configuration.public abstract T getConfig()
public abstract XmlStaticTopologyConfig<T> newInstance(T conf)
conf - A MD-SAL container which contains the configuration.Copyright © 2018 OpenDaylight. All rights reserved.