Search in sources :

Example 1 with DataLoadThreadTime

use of org.apache.phoenix.pherf.result.DataLoadThreadTime in project phoenix by apache.

the class WriteWorkload method execute.

public Runnable execute() throws Exception {
    return new Runnable() {

        @Override
        public void run() {
            try {
                DataLoadTimeSummary dataLoadTimeSummary = new DataLoadTimeSummary();
                DataLoadThreadTime dataLoadThreadTime = new DataLoadThreadTime();
                if (WriteWorkload.this.scenario == null) {
                    for (Scenario scenario : getParser().getScenarios()) {
                        exec(dataLoadTimeSummary, dataLoadThreadTime, scenario);
                    }
                } else {
                    exec(dataLoadTimeSummary, dataLoadThreadTime, WriteWorkload.this.scenario);
                }
                resultUtil.write(dataLoadTimeSummary);
                resultUtil.write(dataLoadThreadTime);
            } catch (Exception e) {
                logger.warn("", e);
            }
        }
    };
}
Also used : DataLoadThreadTime(org.apache.phoenix.pherf.result.DataLoadThreadTime) DataLoadTimeSummary(org.apache.phoenix.pherf.result.DataLoadTimeSummary) PherfException(org.apache.phoenix.pherf.exception.PherfException) SQLException(java.sql.SQLException) Scenario(org.apache.phoenix.pherf.configuration.Scenario)

Aggregations

SQLException (java.sql.SQLException)1 Scenario (org.apache.phoenix.pherf.configuration.Scenario)1 PherfException (org.apache.phoenix.pherf.exception.PherfException)1 DataLoadThreadTime (org.apache.phoenix.pherf.result.DataLoadThreadTime)1 DataLoadTimeSummary (org.apache.phoenix.pherf.result.DataLoadTimeSummary)1