Class ProtocolsConfigFileProcessor
java.lang.Object
org.opendaylight.bgpcep.config.loader.spi.AbstractConfigFileProcessor
org.opendaylight.bgpcep.config.loader.protocols.ProtocolsConfigFileProcessor
- All Implemented Interfaces:
AutoCloseable
,ConfigFileProcessor
,org.opendaylight.yangtools.concepts.Registration
-
Constructor Summary
ConstructorDescriptionProtocolsConfigFileProcessor
(ConfigLoader configLoader, org.opendaylight.mdsal.dom.api.DOMDataBroker dataBroker) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute
Return theSchemaNodeIdentifier.Absolute
path to the expected root node of the document contained in the file.void
init()
protected com.google.common.util.concurrent.FluentFuture
<? extends org.opendaylight.mdsal.common.api.CommitInfo> loadConfiguration
(org.opendaylight.mdsal.dom.api.DOMDataBroker dataBroker, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode dto) Load specified DTO using providedDOMDataBroker
.Methods inherited from class org.opendaylight.bgpcep.config.loader.spi.AbstractConfigFileProcessor
loadConfiguration, start, stop
-
Constructor Details
-
ProtocolsConfigFileProcessor
@Inject public ProtocolsConfigFileProcessor(ConfigLoader configLoader, org.opendaylight.mdsal.dom.api.DOMDataBroker dataBroker)
-
-
Method Details
-
init
@PostConstruct public void init() -
close
@PreDestroy public void close() -
fileRootSchema
public org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute fileRootSchema()Description copied from interface:ConfigFileProcessor
Return theSchemaNodeIdentifier.Absolute
path to the expected root node of the document contained in the file.- Returns:
- An absolute schema node identifier.
-
loadConfiguration
protected com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> loadConfiguration(org.opendaylight.mdsal.dom.api.DOMDataBroker dataBroker, org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode dto) Description copied from class:AbstractConfigFileProcessor
Load specified DTO using providedDOMDataBroker
.- Specified by:
loadConfiguration
in classAbstractConfigFileProcessor
- Parameters:
dataBroker
- data broker to usedto
- normalizedNode- Returns:
- Transaction commit future
-