public final class FakeLoadExecutors extends Object
FakeLoadExecutor instances.| Modifier and Type | Method and Description |
|---|---|
static FakeLoadExecutor |
newDefaultExecutor()
Creates a
DefaultFakeLoadExecutor instance for executing FakeLoad objects. |
public static FakeLoadExecutor newDefaultExecutor()
DefaultFakeLoadExecutor instance for executing FakeLoad objects.
The created executor contains everything necessary to perform system load simulation of CPU, memory and disk I/O.
The returned executor is thread safe and can be used concurrently.
However, clients can create as many executors as they want using this method,
without compromising concurrent behavior. All DefaultFakeLoadExecutor
instances returned by this method, use the same SimulationInfrastructure
below the surface.
Important: Disk input is simulated by reading from a file called "input.tmp" located in the temporary directory as indicated by system property "java.io.tmpdir". This directory is typically "/tmp", or "/var/tmp" on Unix-like platforms. On Microsoft Windows systems the java.io.tmpdir property is typically "C:\WINNT\TEMP". You can set the property with -Djava.io.tmpdir=/your-tmpdirectory. The file needs to be created prior to disk input simulation. To prevent caching of the file system, the file should be at least twice as big as the available RAM.
DefaultFakeLoadExecutor instanceCopyright © 2017. All rights reserved.