use of com.hazelcast.simulator.agent.workerprocess.WorkerParameters in project hazelcast-simulator by hazelcast.
the class AgentOperationProcessorTest method testCreateWorkerOperation.
@Test
public void testCreateWorkerOperation() throws Exception {
CreateWorkerOperation op = new CreateWorkerOperation(new WorkerParameters(), 1);
processor.process(op, source, promise);
verify(processManager).launch(op, promise);
}
use of com.hazelcast.simulator.agent.workerprocess.WorkerParameters in project hazelcast-simulator by hazelcast.
the class RegistryTest method testRemoveWorker_viaSimulatorAddress.
@Test
public void testRemoveWorker_viaSimulatorAddress() {
SimulatorAddress agentAddress = addAgent();
List<WorkerParameters> parametersList = newWorkerParametersList(agentAddress, 5);
registry.addWorkers(parametersList);
assertEquals(5, registry.workerCount());
registry.removeWorker(workerAddress(1, 3));
assertEquals(4, registry.workerCount());
}
use of com.hazelcast.simulator.agent.workerprocess.WorkerParameters in project hazelcast-simulator by hazelcast.
the class RegistryTest method testHasClientWorkers_withClientWorkers.
@Test
public void testHasClientWorkers_withClientWorkers() {
SimulatorAddress agentAddress = addAgent();
List<WorkerParameters> parametersList = newWorkerParametersList(agentAddress, 2);
registry.addWorkers(parametersList);
parametersList = newWorkerParametersList(agentAddress, 2, "javaclient");
registry.addWorkers(parametersList);
assertTrue(registry.hasClientWorkers());
}
Aggregations