Search in sources :

Example 1 with RunSQLPPFileAction

use of org.apache.asterix.experiment.action.derived.RunSQLPPFileAction in project asterixdb by apache.

the class PresetClusterPerfBuilder method doBuild.

@Override
protected void doBuild(Experiment e) throws IOException, JAXBException {
    SequentialActionList execs = new SequentialActionList();
    //ddl statements
    execs.add(new SleepAction(15000));
    // TODO: implement retry handler
    execs.add(new RunAQLFileAction(httpClient, restHost, restPort, localExperimentRoot.resolve(LSMExperimentConstants.AQL_DIR).resolve(LSMPerfConstants.BASE_TYPES)));
    execs.add(new RunAQLFileAction(httpClient, restHost, restPort, localExperimentRoot.resolve(LSMExperimentConstants.AQL_DIR).resolve("bench_3.aql")));
    //---------- main experiment body begins -----------
    //run DDL + Load
    execs.add(new TimedAction(new RunAQLFileAction(httpClient, restHost, restPort, localExperimentRoot.resolve(LSMExperimentConstants.AQL_DIR).resolve(loadAQLFilePath))));
    //execute SQL++ Queries
    execs.add(new TimedAction(new RunSQLPPFileAction(httpClient, restHost, restPort, localExperimentRoot.resolve(LSMExperimentConstants.AQL_DIR).resolve(querySQLPPFileName), localExperimentRoot.resolve(LSMPerfConstants.RESULT_FILE))));
    //---------- main experiment body ends -----------
    //total record count
    execs.add(new SleepAction(10000));
    if (countFileName != null) {
        execs.add(new RunAQLFileAction(httpClient, restHost, restPort, localExperimentRoot.resolve(LSMExperimentConstants.AQL_DIR).resolve(countFileName)));
    }
    e.addBody(execs);
}
Also used : SequentialActionList(org.apache.asterix.experiment.action.base.SequentialActionList) RunAQLFileAction(org.apache.asterix.experiment.action.derived.RunAQLFileAction) TimedAction(org.apache.asterix.experiment.action.derived.TimedAction) SleepAction(org.apache.asterix.experiment.action.derived.SleepAction) RunSQLPPFileAction(org.apache.asterix.experiment.action.derived.RunSQLPPFileAction)

Aggregations

SequentialActionList (org.apache.asterix.experiment.action.base.SequentialActionList)1 RunAQLFileAction (org.apache.asterix.experiment.action.derived.RunAQLFileAction)1 RunSQLPPFileAction (org.apache.asterix.experiment.action.derived.RunSQLPPFileAction)1 SleepAction (org.apache.asterix.experiment.action.derived.SleepAction)1 TimedAction (org.apache.asterix.experiment.action.derived.TimedAction)1