Skip to content

Commit a577453

Browse files
author
Eric Secules
committed
NIFI-15162 change FlowMetricsReportingStrategy to a no-frills enum because we do not make use of any of the extra descriptions anymore.
1 parent b580e9a commit a577453

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/request/FlowMetricsReportingStrategy.java

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,7 @@
1616
*/
1717
package org.apache.nifi.web.api.request;
1818

19-
20-
import org.apache.nifi.components.AllowableValue;
21-
import org.apache.nifi.components.DescribedValue;
22-
23-
public enum FlowMetricsReportingStrategy implements DescribedValue {
24-
ALL_PROCESS_GROUPS(new AllowableValue("All Process Groups", "All Process Groups",
25-
"Send metrics for each process group")),
26-
ALL_COMPONENTS(new AllowableValue("All Components", "All Components",
27-
"Send metrics for each component in the system, to include processors, connections, controller services, etc."));
28-
29-
private final AllowableValue strategy;
30-
31-
FlowMetricsReportingStrategy(final AllowableValue strategy) {
32-
this.strategy = strategy;
33-
}
34-
35-
@Override
36-
public String getValue() {
37-
return this.strategy.getValue();
38-
}
39-
40-
@Override
41-
public String getDisplayName() {
42-
return this.strategy.getDisplayName();
43-
}
44-
45-
@Override
46-
public String getDescription() {
47-
return this.strategy.getDescription();
48-
}
49-
}
19+
public enum FlowMetricsReportingStrategy {
20+
ALL_PROCESS_GROUPS,
21+
ALL_COMPONENTS;
22+
}

0 commit comments

Comments
 (0)