com.hazelcast.console
Class SimulateLoadTask

java.lang.Object
  extended by com.hazelcast.console.SimulateLoadTask
All Implemented Interfaces:
HazelcastInstanceAware, Serializable, Callable

public final class SimulateLoadTask
extends Object
implements Callable, Serializable, HazelcastInstanceAware

A simulated load test

See Also:
Serialized Form

Constructor Summary
SimulateLoadTask(int delay, int taskId, String latchId)
           
 
Method Summary
 Object call()
           
 void setHazelcastInstance(HazelcastInstance hazelcastInstance)
          Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulateLoadTask

public SimulateLoadTask(int delay,
                        int taskId,
                        String latchId)
Method Detail

setHazelcastInstance

public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
Description copied from interface: HazelcastInstanceAware
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.

Specified by:
setHazelcastInstance in interface HazelcastInstanceAware
Parameters:
hazelcastInstance - the HazelcastInstance reference

call

public Object call()
            throws Exception
Specified by:
call in interface Callable
Throws:
Exception


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.