Search in sources :

Example 1 with KillWorkersTask

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);
}
Also used : KillWorkersTask(com.hazelcast.simulator.coordinator.tasks.KillWorkersTask) WorkerData(com.hazelcast.simulator.coordinator.registry.WorkerData) WorkerQuery(com.hazelcast.simulator.coordinator.registry.WorkerQuery)

Aggregations

WorkerData (com.hazelcast.simulator.coordinator.registry.WorkerData)1 WorkerQuery (com.hazelcast.simulator.coordinator.registry.WorkerQuery)1 KillWorkersTask (com.hazelcast.simulator.coordinator.tasks.KillWorkersTask)1