Merge "ConfigurationService to create default config dir"
[controller.git] / opendaylight / configuration / api / src / main / java / org / opendaylight / controller / configuration / IConfigurationContainerService.java
index 2123f6b9eb9c1004d6dcc2dd34cf26726168c153..b8461ce3b340beca89a4be52e2f29cc4b7c58d17 100644 (file)
@@ -13,4 +13,22 @@ package org.opendaylight.controller.configuration;
  * Container configuration service
  */
 public interface IConfigurationContainerService extends IConfigurationServiceCommon {
+
+    /**
+     * This function returns the path to the configuration directory of the
+     * current container.
+     *
+     * @return The path to active container's configuration directory
+     */
+    public String getConfigurationRoot();
+
+    /**
+     * Function checks whether there exists a saved configuration for this
+     * container (This is essentially checking whether the container's root
+     * configuration directory exists)
+     *
+     * @return True iff container config has been saved at least once
+     */
+    public boolean hasBeenSaved();
+
 }