Class OpenconfigRoutingConfigFileProcessor
java.lang.Object
org.opendaylight.bgpcep.config.loader.spi.AbstractConfigFileProcessor
org.opendaylight.bgpcep.config.loader.routing.policy.OpenconfigRoutingConfigFileProcessor
- All Implemented Interfaces:
AutoCloseable
,ConfigFileProcessor
,org.opendaylight.yangtools.concepts.Registration
@Singleton
public final class OpenconfigRoutingConfigFileProcessor
extends AbstractConfigFileProcessor
-
Constructor Summary
ConstructorDescriptionOpenconfigRoutingConfigFileProcessor
(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
-
OpenconfigRoutingConfigFileProcessor
@Inject public OpenconfigRoutingConfigFileProcessor(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
-