summaryrefslogtreecommitdiff
path: root/qpid/java/broker-core/src/main/java/org/apache/qpid/server/store/DurableConfigurationStore.java
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/broker-core/src/main/java/org/apache/qpid/server/store/DurableConfigurationStore.java')
-rwxr-xr-xqpid/java/broker-core/src/main/java/org/apache/qpid/server/store/DurableConfigurationStore.java24
1 files changed, 14 insertions, 10 deletions
diff --git a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/store/DurableConfigurationStore.java b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/store/DurableConfigurationStore.java
index ae138f12c2..624c451df6 100755
--- a/qpid/java/broker-core/src/main/java/org/apache/qpid/server/store/DurableConfigurationStore.java
+++ b/qpid/java/broker-core/src/main/java/org/apache/qpid/server/store/DurableConfigurationStore.java
@@ -23,10 +23,14 @@ package org.apache.qpid.server.store;
import java.util.Map;
import java.util.UUID;
-import org.apache.qpid.server.model.VirtualHost;
+import org.apache.qpid.server.model.ConfiguredObject;
public interface DurableConfigurationStore
{
+ String STORE_TYPE = "storeType";
+ String STORE_PATH = "storePath";
+ String IS_MESSAGE_STORE_TOO = "isMessageStoreToo";
+
public static interface Source
{
@@ -36,16 +40,16 @@ public interface DurableConfigurationStore
/**
* Called after instantiation in order to configure the message store. A particular implementation can define
* whatever parameters it wants.
- *
- *
- *
- *
- *
- * @param virtualHost
- * @param recoveryHandler Handler to be called as the store recovers on start up
+ * @param parent host name
+ * @param storeSettings store settings
*/
- void configureConfigStore(VirtualHost virtualHost, ConfigurationRecoveryHandler recoveryHandler);
+ void openConfigurationStore(ConfiguredObject<?> parent, Map<String, Object> storeSettings) throws StoreException;
+ /**
+ * Recovers configuration from the store using given recovery handler
+ * @param recoveryHandler recovery handler
+ */
+ void recoverConfigurationStore(ConfigurationRecoveryHandler recoveryHandler) throws StoreException;
/**
* Makes the specified object persistent.
@@ -78,6 +82,6 @@ public interface DurableConfigurationStore
*/
void update(boolean createIfNecessary, ConfiguredObjectRecord... records) throws StoreException;
+ void closeConfigurationStore() throws StoreException;
- void close() throws Exception;
}