Class InputFilesMap
- java.lang.Object
-
- com.dkfqs.measuringagent.javascript.executor.InputFilesMap
-
public class InputFilesMap extends java.lang.ObjectA map of all input files.
-
-
Constructor Summary
Constructors Constructor Description InputFilesMap(com.dkfqs.measuringagent.javascript.JavaScriptRhinoTestJobExecutorContext testJobExecutorContext, JsonObject jsonConfigObject)Create a new instance and read all input files into memory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getInputFileNamesList()Get an unsorted list of all input file names.java.lang.String[]getNextLineTokens(java.lang.String fileName)Get the next line from an input file and split it into tokens - This method is thread safe.
-
-
-
Constructor Detail
-
InputFilesMap
public InputFilesMap(com.dkfqs.measuringagent.javascript.JavaScriptRhinoTestJobExecutorContext testJobExecutorContext, JsonObject jsonConfigObject) throws java.io.IOExceptionCreate a new instance and read all input files into memory.- Parameters:
testJobExecutorContext- the test job executor contextjsonConfigObject- the JSON config object of the test- Throws:
java.io.IOException- if reading of an input file has failed
-
-
Method Detail
-
getInputFileNamesList
public java.util.List<java.lang.String> getInputFileNamesList()
Get an unsorted list of all input file names.- Returns:
- an unsorted list of all input file names
-
getNextLineTokens
public java.lang.String[] getNextLineTokens(java.lang.String fileName) throws JavaScriptRhinoTestExceptionGet the next line from an input file and split it into tokens - This method is thread safe.- Parameters:
fileName- the file name of the input file- Returns:
- the tokens of the line, or null if ('cyclic read' is disabled AND 'end of file' is reached)
- Throws:
JavaScriptRhinoTestException- if the input file is undefined
-
-