use of com.hazelcast.simulator.coordinator.tasks.KillWorkersTask in project hazelcast-simulator by hazelcast.
the class Coordinator method workerKill.
public String workerKill(RcWorkerKillOperation op) throws Exception {
WorkerQuery workerQuery = op.getWorkerQuery();
LOGGER.info(format("Killing %s...", workerQuery));
List<WorkerData> result = new KillWorkersTask(registry, client, op.getCommand(), workerQuery, properties.getInt("WAIT_FOR_WORKER_SHUTDOWN_TIMEOUT_SECONDS")).run();
LOGGER.info("\n" + registry.printLayout());
LOGGER.info(format("Killing %s complete", workerQuery));
return WorkerData.toAddressString(result);
}
Aggregations