You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by jo...@apache.org on 2021/02/25 05:57:11 UTC
[nifi] 02/24: NIFI-8231 Clarify behavior of allowed values for
Memory Pools in MonitorMemory
This is an automated email from the ASF dual-hosted git repository.
joewitt pushed a commit to branch support/nifi-1.13
in repository https://gitbox.apache.org/repos/asf/nifi.git
commit 0d30a7b2451de20747a958fa421950e503ca6eda
Author: Joey Frazee <jf...@apache.org>
AuthorDate: Wed Feb 17 15:33:02 2021 -0800
NIFI-8231 Clarify behavior of allowed values for Memory Pools in MonitorMemory
---
.../src/main/java/org/apache/nifi/controller/MonitorMemory.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-reporting-tasks/src/main/java/org/apache/nifi/controller/MonitorMemory.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-reporting-tasks/src/main/java/org/apache/nifi/controller/MonitorMemory.java
index a723a88..c611375 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-reporting-tasks/src/main/java/org/apache/nifi/controller/MonitorMemory.java
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-reporting-tasks/src/main/java/org/apache/nifi/controller/MonitorMemory.java
@@ -104,14 +104,17 @@ public class MonitorMemory extends AbstractReportingTask {
public static final PropertyDescriptor MEMORY_POOL_PROPERTY = new PropertyDescriptor.Builder()
.name("Memory Pool")
.displayName("Memory Pool")
- .description("The name of the JVM Memory Pool to monitor")
+ .description("The name of the JVM Memory Pool to monitor. The allowed values for Memory Pools are platform and JVM"
+ + " dependent and may vary for different versions of Java and from published documentation. This reporting"
+ + " task will become invalidated if configured to use a Memory Pool that is not available on the currently"
+ + " running host platform and JVM")
.required(true)
.allowableValues(memPoolAllowableValues)
.build();
public static final PropertyDescriptor THRESHOLD_PROPERTY = new PropertyDescriptor.Builder()
.name("Usage Threshold")
.displayName("Usage Threshold")
- .description("Indicates the threshold at which warnings should be generated")
+ .description("Indicates the threshold at which warnings should be generated. This can be a percentage or a Data Size")
.required(true)
.addValidator(new ThresholdValidator())
.defaultValue("65%")