Class AbstractRandomQueryChooserWorker

    • Constructor Detail

      • AbstractRandomQueryChooserWorker

        public AbstractRandomQueryChooserWorker​(java.lang.String taskID,
                                                Connection connection,
                                                java.lang.String queriesFile,
                                                java.lang.Integer timeOut,
                                                java.lang.Integer timeLimit,
                                                java.lang.Integer fixedLatency,
                                                java.lang.Integer gaussianLatency,
                                                java.lang.String workerType,
                                                java.lang.Integer workerID)
    • Method Detail

      • setQueriesList

        public void setQueriesList​(java.io.File[] queries)
        Description copied from class: AbstractWorker
        Sets the Query Instances repr. in Files.
        Overrides:
        setQueriesList in class AbstractWorker
        Parameters:
        queries - File containing the query instances.
      • getNextQuery

        public void getNextQuery​(java.lang.StringBuilder queryStr,
                                 java.lang.StringBuilder queryID)
                          throws java.io.IOException
        Description copied from interface: Worker
        This method saves the next query in the queryStr StringBuilder and the query id in the queryID.
        Parameters:
        queryStr - The query should be stored in here!
        queryID - The queryID should be stored in here!
        Throws:
        java.io.IOException