Class InputFilesMap


  • public class InputFilesMap
    extends java.lang.Object
    A 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputFilesMap

        public InputFilesMap​(com.dkfqs.measuringagent.javascript.JavaScriptRhinoTestJobExecutorContext testJobExecutorContext,
                             JsonObject jsonConfigObject)
                      throws java.io.IOException
        Create a new instance and read all input files into memory.
        Parameters:
        testJobExecutorContext - the test job executor context
        jsonConfigObject - 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 JavaScriptRhinoTestException
        Get 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