/*******************************************************************************
 * Copyright 2016, 2018 vanilladb.org contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package org.vanilladb.bench.benchmarks.micro;

import java.sql.SQLException;
import java.util.HashSet;
import java.util.Set;

import org.vanilladb.bench.BenchTransactionType;
import org.vanilladb.bench.Benchmarker;
import org.vanilladb.bench.StatisticMgr;
import org.vanilladb.bench.benchmarks.micro.rte.MicrobenchmarkRte;
import org.vanilladb.bench.remote.SutConnection;
import org.vanilladb.bench.remote.SutDriver;
import org.vanilladb.bench.rte.RemoteTerminalEmulator;

public class MicroBenchmarker extends Benchmarker {
	
	public MicroBenchmarker(SutDriver sutDriver) {
		super(sutDriver, "microbench");
	}
	
	public MicroBenchmarker(SutDriver sutDriver, String reportPostfix) {
		super(sutDriver, "microbench-" + reportPostfix);
	}
	
	public Set<BenchTransactionType> getBenchmarkingTxTypes() {
		Set<BenchTransactionType> txTypes = new HashSet<BenchTransactionType>();
		for (MicrobenchTransactionType txType : MicrobenchTransactionType.values()) {
			if (!txType.isLoadingProcedure())
				txTypes.add(txType);
		}
		return txTypes;
	}

	protected void executeLoadingProcedure(SutConnection conn) throws SQLException {
		conn.callStoredProc(MicrobenchTransactionType.TESTBED_LOADER.getProcedureId());
	}
	
	protected RemoteTerminalEmulator<MicrobenchTransactionType> createRte(SutConnection conn, StatisticMgr statMgr) {
		return new MicrobenchmarkRte(conn, statMgr);
	}
}

@@ -1970,16 +1970,51 @@
 dureId()
+,%0A%09%09%09%09MicrobenchConstants.NUM_ITEMS
 );%0A%09%7D%0A%09%0A

Add missing arguments