This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git

commit 28bf968e4e097a33310ae1e98c15f31cc2b09f5e
Author: Juan Cabrerizo <j...@cloudsoft.io>
AuthorDate: Fri Dec 4 11:01:41 2020 +0000

    Added config key brooklyn.persistence.dir.required
---
 .../java/org/apache/brooklyn/core/server/BrooklynServerConfig.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/core/src/main/java/org/apache/brooklyn/core/server/BrooklynServerConfig.java 
b/core/src/main/java/org/apache/brooklyn/core/server/BrooklynServerConfig.java
index 9bcd409..4ded90c 100644
--- 
a/core/src/main/java/org/apache/brooklyn/core/server/BrooklynServerConfig.java
+++ 
b/core/src/main/java/org/apache/brooklyn/core/server/BrooklynServerConfig.java
@@ -18,6 +18,7 @@
  */
 package org.apache.brooklyn.core.server;
 
+import static org.apache.brooklyn.core.config.ConfigKeys.newBooleanConfigKey;
 import static org.apache.brooklyn.core.config.ConfigKeys.newStringConfigKey;
 
 import java.net.URI;
@@ -65,6 +66,12 @@ public class BrooklynServerConfig {
         "brooklyn.persistence.dir", 
         "Directory or container name for writing persisted state");
 
+    public static final ConfigKey<Boolean> PERSISTENCE_DIR_MUST_EXIST = 
newBooleanConfigKey(
+            "brooklyn.persistence.dir.required",
+            "Whether the persistence directory should before starting AMP;"
+                    + "if true, it will fail if it can't find the directory;"
+                    + "if false, the persistence directory will be created in 
case it didn't exist in advance;", false);
+
     public static final ConfigKey<String> PERSISTENCE_LOCATION_SPEC = 
newStringConfigKey(
         "brooklyn.persistence.location.spec", 
         "Optional location spec string for an object store (e.g. 
jclouds:swift:URL) where persisted state should be kept; "

Reply via email to