diff options
Diffstat (limited to 'qpid/java/broker/src/main/java/org/apache/qpid/server/configuration/ConfigurationEntryStore.java')
-rw-r--r-- | qpid/java/broker/src/main/java/org/apache/qpid/server/configuration/ConfigurationEntryStore.java | 39 |
1 files changed, 7 insertions, 32 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/configuration/ConfigurationEntryStore.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/configuration/ConfigurationEntryStore.java index 8238d147bd..d514bf25ce 100644 --- a/qpid/java/broker/src/main/java/org/apache/qpid/server/configuration/ConfigurationEntryStore.java +++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/configuration/ConfigurationEntryStore.java @@ -24,38 +24,6 @@ import java.util.UUID; public interface ConfigurationEntryStore { - /** - * Opens the store from a given location. - * <p> - * If location does not exists than a new empty store is created with a single root entry - * - * @param storeLocation store location - * @throws IllegalConfigurationException if store cannot be opened in the given location - */ - void open(String storeLocation); - - /** - * Opens the store from a given location. - * <p> - * If location does not exists than a new store is created either empty or from the initial store location if it is provided - * - * @param storeLocation store location - * @param initialStoreLocation initial store location - * @throws IllegalConfigurationException if store cannot be opened in the given location or initial store location does not - * exists or corrupted. - */ - void open(String storeLocation, String initialStoreLocation); - - /** - * Opens the store from a given location. - * <p> - * If location does not exists than a new store is created either empty or from the initial store if it is provided - * - * @param storeLocation store location - * @param initialStore initial store - * @throws IllegalConfigurationException if store cannot be opened in the given location - */ - void open(String storeLocation, ConfigurationEntryStore initialStore); /** * Returns stored root configuration entry @@ -95,4 +63,11 @@ public interface ConfigurationEntryStore * @throws IllegalConfigurationException if store cannot be copied into given location */ public void copyTo(String copyLocation); + + /** + * Return the store location for the opened store or null if store has not been opened. + * + * @return store location for the opened store or null if store has not been opened + */ + public String getStoreLocation(); } |