changeset 565:65c26bb5ca38

Scheduled<etricsCollector.setPeriodTime
author Devel 2
date Thu, 21 Sep 2017 16:49:06 +0200
parents 911a02356a4b
children 11c45aa98eb1
files stress-tester/src/main/java/com/passus/st/metric/ScheduledMetricsCollector.java
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/metric/ScheduledMetricsCollector.java	Thu Sep 21 16:12:00 2017 +0200
+++ b/stress-tester/src/main/java/com/passus/st/metric/ScheduledMetricsCollector.java	Thu Sep 21 16:49:06 2017 +0200
@@ -37,6 +37,15 @@
 
     private List<MetricsCollectionHandler> handlers = new ArrayList<>();
 
+    public long getPeriodTime() {
+        return periodTime;
+    }
+
+    public void setPeriodTime(long periodTime) {
+        Assert.greaterThanZero(periodTime, "periodTime");
+        this.periodTime = periodTime;
+    }
+
     @Override
     public boolean isStarted() {
         throw new UnsupportedOperationException("Not supported yet.");