org.jppf.server.scheduler.bundle.impl
Class NodeSimulator
java.lang.Object
org.jppf.server.scheduler.bundle.impl.NodeSimulator
public class NodeSimulator
- extends Object
Simulation of a node to test a bundler.
- Author:
- Laurent Cohen
|
Constructor Summary |
NodeSimulator(double latency,
double dynamicOverhead,
double speed)
Initialize this simulator with the specified parameters. |
|
Method Summary |
static void |
main(String... args)
Entry point to test this class. |
void |
run(Bundler bundler,
double sizeMB,
int nbTasks,
long timePerTask)
Simulate the execution of a set of tasks. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeSimulator
public NodeSimulator(double latency,
double dynamicOverhead,
double speed)
- Initialize this simulator with the specified parameters.
- Parameters:
latency - static simulated latency.dynamicOverhead - dynamic overhead expressed as milliseconds per megabyte of data transferred.speed - relative speed of the node.
run
public void run(Bundler bundler,
double sizeMB,
int nbTasks,
long timePerTask)
- Simulate the execution of a set of tasks.
- Parameters:
bundler - the bundler to send the resulting statistics to.sizeMB - the size in megabytes of the data that is transferred.nbTasks - the number of simulated tasks.timePerTask - the simulated execution time for each task.
main
public static void main(String... args)
- Entry point to test this class.
- Parameters:
args - not used.
Copyright © 2005-2010 JPPF Team.