Search in sources :

Example 6 with Run

use of com.hazelcast.simulator.test.annotations.Run in project hazelcast-simulator by hazelcast.

the class MapTransactionGetForUpdateTest method run.

@Run
public void run() {
    ThreadSpawner spawner = new ThreadSpawner(name);
    for (int i = 0; i < threadCount; i++) {
        spawner.spawn(new Worker());
    }
    spawner.awaitCompletion();
}
Also used : ThreadSpawner(com.hazelcast.simulator.utils.ThreadSpawner) Run(com.hazelcast.simulator.test.annotations.Run)

Aggregations

Run (com.hazelcast.simulator.test.annotations.Run)6 ThreadSpawner (com.hazelcast.simulator.utils.ThreadSpawner)5 TimeStep (com.hazelcast.simulator.test.annotations.TimeStep)1 AnnotatedMethodRetriever (com.hazelcast.simulator.utils.AnnotatedMethodRetriever)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Method (java.lang.reflect.Method)1 LinkedList (java.util.LinkedList)1