You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NIFI-14770: Allowing the user to reset all counters in a single action. (apache#10115)
* NIFI-14770: Allowing the user to reset all counters in a single action.
* NIFI-14770: Fixing checkstyle issues.
* NIFI-14770: Addressing review feedback.
This closesapache#10115
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/repository/StandardCounterRepository.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -106,4 +106,16 @@ public Counter resetCounter(final String identifier) {
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/repository/CounterRepository.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,6 @@ public interface CounterRepository {
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2418,6 +2418,11 @@ public Counter resetCounter(final String identifier) {
Copy file name to clipboardExpand all lines: nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/NiFiServiceFacade.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -446,6 +446,13 @@ public interface NiFiServiceFacade {
446
446
*/
447
447
CounterDTOupdateCounter(StringcounterId);
448
448
449
+
/**
450
+
* Updates all counters by setting their values to 0.
0 commit comments