|
@@ -359,6 +359,13 @@ public class Configuration {
|
|
|
public static final ConfigurationProperty<String> VIEWS_VALIDATE = new ConfigurationProperty<>(
|
|
|
"views.validate", "false");
|
|
|
|
|
|
+ /**
|
|
|
+ * Determines whether the view directory watcher service should be disabled.
|
|
|
+ */
|
|
|
+ @Markdown(description = "Determines whether the view directory watcher service should be disabled.")
|
|
|
+ public static final ConfigurationProperty<String> DISABLE_VIEW_DIRECTORY_WATCHER = new ConfigurationProperty<>(
|
|
|
+ "views.directory.watcher.disable", "false");
|
|
|
+
|
|
|
/**
|
|
|
* Determines whether remove undeployed views from the Ambari database.
|
|
|
*/
|
|
@@ -3251,6 +3258,15 @@ public class Configuration {
|
|
|
return Boolean.parseBoolean(getProperty(VIEWS_REMOVE_UNDEPLOYED));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Determines whether the view directory watcher service should be disabled
|
|
|
+ *
|
|
|
+ * @return true view directory watcher service should be disabled
|
|
|
+ */
|
|
|
+ public boolean isViewDirectoryWatcherServiceDisabled() {
|
|
|
+ return Boolean.parseBoolean(getProperty(DISABLE_VIEW_DIRECTORY_WATCHER));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return conventional Java version number, e.g. 7.
|
|
|
* Integer is used here to simplify comparisons during usage.
|