Class AbstractConfigFileProcessor

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract @NonNull com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> loadConfiguration​(@NonNull org.opendaylight.mdsal.dom.api.DOMDataBroker dataBroker, @NonNull org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode dto)
      Load specified DTO using provided DOMDataBroker.
      void loadConfiguration​(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode dto)
      Load the information contained on the normalized node.
      protected void start()
      Start this processor by registering it with the config loader.
      protected void stop()
      Stop this processor by unregistering it from the loader.
      • Methods inherited from interface org.opendaylight.yangtools.concepts.Registration

        close
    • Constructor Detail

      • AbstractConfigFileProcessor

        protected AbstractConfigFileProcessor​(String name,
                                              ConfigLoader configLoader,
                                              org.opendaylight.mdsal.dom.api.DOMDataBroker dataBroker)
    • Method Detail

      • loadConfiguration

        public final void loadConfiguration​(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode dto)
        Description copied from interface: ConfigFileProcessor
        Load the information contained on the normalized node.
        Specified by:
        loadConfiguration in interface ConfigFileProcessor
        Parameters:
        dto - normalizedNode
      • loadConfiguration

        protected abstract @NonNull com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> loadConfiguration​(@NonNull org.opendaylight.mdsal.dom.api.DOMDataBroker dataBroker,
                                                                                                                                                             @NonNull org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode dto)
        Load specified DTO using provided DOMDataBroker.
        Parameters:
        dataBroker - data broker to use
        dto - normalizedNode
        Returns:
        Transaction commit future
      • start

        protected final void start()
        Start this processor by registering it with the config loader.
        Throws:
        IllegalStateException - if the processor has already been started
      • stop

        protected final void stop()
        Stop this processor by unregistering it from the loader. If this processor is not started, this method does nothing.