changeset 896:c14897e6021d

bugfixes
author Devel 1
date Mon, 09 Apr 2018 14:25:17 +0200
parents ae83d4c096cd
children a50820afce53
files stress-tester/src/main/java/com/passus/st/metric/FileMetricsCollectionAppender.java stress-tester/src/main/java/com/passus/st/source/PcapSessionEventSource.java stress-tester/src/test/resources/com/passus/st/project/test_project_config.yml
diffstat 3 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/metric/FileMetricsCollectionAppender.java	Mon Apr 09 11:25:46 2018 +0200
+++ b/stress-tester/src/main/java/com/passus/st/metric/FileMetricsCollectionAppender.java	Mon Apr 09 14:25:17 2018 +0200
@@ -10,6 +10,7 @@
 import static com.passus.config.schema.ConfigurationSchemaBuilder.mapDef;
 import static com.passus.config.schema.ConfigurationSchemaBuilder.tupleDef;
 import static com.passus.config.schema.ConfigurationSchemaBuilder.valueDef;
+import static com.passus.config.schema.ConfigurationSchemaBuilder.valueDefBool;
 import static com.passus.config.schema.ConfigurationSchemaBuilder.valueDefInteger;
 import com.passus.config.schema.NodeDefinition;
 import com.passus.config.schema.NodeDefinitionCreator;
@@ -292,6 +293,7 @@
         @Override
         public NodeDefinition create() {
             return mapDef(
+                    tupleDef("active", valueDefBool()).setRequired(false),
                     tupleDef("fileName", valueDef()),
                     tupleDef("maxFileSize",
                             valueDef().setTransformer(SizeValueTransformer.INSTANCE)
--- a/stress-tester/src/main/java/com/passus/st/source/PcapSessionEventSource.java	Mon Apr 09 11:25:46 2018 +0200
+++ b/stress-tester/src/main/java/com/passus/st/source/PcapSessionEventSource.java	Mon Apr 09 14:25:17 2018 +0200
@@ -647,8 +647,8 @@
             return mapDef(
                     tupleDef("fileName", valueDef()),
                     tupleDef("loops", valueDefInteger().addValidator(LongValidator.GREATER_EQUAL_ZERO)),
-                    tupleDef("loopDelay", valueDefLong().addValidator(LongValidator.GREATER_EQUAL_ZERO)),
-                    tupleDef("sessionProc", sessionProcDef.setRequired(false)),
+                    tupleDef("loopDelay", valueDefLong().addValidator(LongValidator.GREATER_EQUAL_ZERO)).setRequired(false),
+                    tupleDef("sessionProc", sessionProcDef).setRequired(false),
                     tupleDef("collectMetrics", valueDefBool()).setRequired(false)
             );
         }
--- a/stress-tester/src/test/resources/com/passus/st/project/test_project_config.yml	Mon Apr 09 11:25:46 2018 +0200
+++ b/stress-tester/src/test/resources/com/passus/st/project/test_project_config.yml	Mon Apr 09 14:25:17 2018 +0200
@@ -4,9 +4,8 @@
 
 reporter:
     active: true
-    address: 2.2.2.2
-    port: 222222
-
+    host: 2.2.2.2
+    port: 22222
 
 metrics:
     active: true
@@ -20,7 +19,7 @@
     emitters:
         - type: nio
           connectionTimeout: 5s
-          connectionAttempts: 3
+          #connectionAttempts: 3
           threads: 4
           collectMetrics: true