Shared system timer and executor services - monitoring
Change-Id: Ieaa889447dbcb78e4d27fe7409fae463177372b8
diff --git a/utils/misc/src/main/java/org/onlab/util/SharedExecutors.java b/utils/misc/src/main/java/org/onlab/util/SharedExecutors.java
index 0dadce8..b3e4879 100644
--- a/utils/misc/src/main/java/org/onlab/util/SharedExecutors.java
+++ b/utils/misc/src/main/java/org/onlab/util/SharedExecutors.java
@@ -16,6 +16,8 @@
package org.onlab.util;
+import org.onlab.metrics.MetricsService;
+
import java.util.Timer;
import java.util.concurrent.ExecutorService;
@@ -93,6 +95,11 @@
"onos-pool-executor-%d")));
}
+
+ public static void setCalculatePoolPerformance(boolean calculatePoolPerformance, MetricsService metricsService) {
+ poolThreadExecutor.setCalculatePoolPerformance(calculatePoolPerformance, metricsService);
+ }
+
/**
* Shuts down all shared timers and executors and therefore should be
* called only by the framework.