changeset 1260:ced86e416863

CsvMetricsCollectionAppender - supports relative path
author Devel 1
date Thu, 02 Jul 2020 10:57:35 +0200
parents 0c295fc300dd
children 7491572234e7
files stress-tester/src/main/java/com/passus/st/metric/CsvMetricsCollectionAppender.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/metric/CsvMetricsCollectionAppender.java	Thu Jul 02 10:52:47 2020 +0200
+++ b/stress-tester/src/main/java/com/passus/st/metric/CsvMetricsCollectionAppender.java	Thu Jul 02 10:57:35 2020 +0200
@@ -10,6 +10,7 @@
 import com.passus.config.annotations.NodeDefinitionCreate;
 import com.passus.config.schema.NodeDefinition;
 import com.passus.config.schema.NodeDefinitionCreator;
+import com.passus.st.config.FileTransformer;
 import com.passus.st.plugin.PluginConstants;
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
@@ -21,8 +22,8 @@
 
 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.st.config.CommonNodeDefs.BOOLEAN_DEF;
-import static com.passus.st.config.CommonNodeDefs.STRING_DEF;
 
 @NodeDefinitionCreate(CsvMetricsCollectionAppender.CsvMetricsCollectionAppenderNodeDefCreator.class)
 @Plugin(name = CsvMetricsCollectionAppender.TYPE, category = PluginConstants.CATEGORY_METRICS_COLLECTION_APPENDER)
@@ -190,7 +191,7 @@
         public NodeDefinition create() {
             return mapDef(
                     tupleDef("active", BOOLEAN_DEF).setRequired(false),
-                    tupleDef("dir", STRING_DEF)
+                    tupleDef("dir", valueDef().setTransformer(new FileTransformer(true)))
             );
         }