All Downloads are FREE. Search and download functionalities are using the official Maven repository.

example.scenario.js.concurrent_path_listing.js Maven / Gradle / Ivy

There is a newer version: 4.3.10
Show newest version
var loadSteps = [CONCURRENCY_LEVEL];

var loadStepConfig = {
	"item": {
		"input": {
			"path": ITEM_INPUT_PATH
		}
	},
	"load": {
		"op": {
			"type": "noop"
		},
		"step": {
			"id": LOAD_STEP_ID
		}
	}
}

for(var i = 0; i < CONCURRENCY_LEVEL; i ++) {
	loadSteps[i] = Load
		.config(loadStepConfig)
		.start();
}

try {
	for(var i = 0; i < CONCURRENCY_LEVEL; i ++) {
		loadSteps[i].await();
	}
} finally {
	for(var i = 0; i < CONCURRENCY_LEVEL; i ++) {
		loadSteps[i].close();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy