| Modifier and Type | Method and Description |
|---|---|
FakeLoad |
FakeLoad.addLoad(FakeLoad load)
Adds the specified
FakeLoad object to this FakeLoad's inner loads. |
FakeLoad |
FakeLoad.addLoads(Collection<FakeLoad> loads)
Adds the specified
FakeLoad objects to this FakeLoad's inner loads. |
FakeLoad |
FakeLoadBuilder.build() |
static FakeLoad |
FakeLoads.create()
Creates a new empty
FakeLoad instance. |
FakeLoad |
FakeLoad.lasting(long duration,
TimeUnit unit)
Returns a
FakeLoad instance containing the specified duration. |
FakeLoad |
FakeLoad.repeat(int noOfRepetitions)
Returns a
FakeLoad instance with the number of specified repetitions set. |
FakeLoad |
FakeLoad.withCpu(int cpuLoad)
Returns a
FakeLoad instance with the specified CPU load. |
FakeLoad |
FakeLoad.withDiskInput(long load,
MemoryUnit unit)
Returns a
FakeLoad instance with the specified disk input load as bytes/seconds. |
FakeLoad |
FakeLoad.withDiskOutput(long load,
MemoryUnit unit)
Returns a
FakeLoad instance with the specified disk output load as bytes/seconds. |
FakeLoad |
FakeLoad.withMemory(long amount,
MemoryUnit unit)
Returns a
FakeLoad instance with the specified memory load. |
| Modifier and Type | Method and Description |
|---|---|
Collection<FakeLoad> |
FakeLoad.getInnerLoads()
Returns the inner
FakeLoad objects of this FakeLoad |
Iterator<FakeLoad> |
FakeLoad.iterator()
Returns an iterator of this
FakeLoad object. |
| Modifier and Type | Method and Description |
|---|---|
FakeLoadBuilder |
FakeLoadBuilder.addLoad(FakeLoad load) |
FakeLoad |
FakeLoad.addLoad(FakeLoad load)
Adds the specified
FakeLoad object to this FakeLoad's inner loads. |
boolean |
FakeLoad.contains(FakeLoad load)
Determines whether the specified
FakeLoad object in contained within the FakeLoad
on which this method was called. |
void |
SystemLoad.decreaseBy(FakeLoad load) |
void |
SimulationInfrastructure.decreaseSystemLoadBy(FakeLoad load)
Decreases the system load simulated by the simulation infrastructure
by the specified
FakeLoad |
void |
LoadController.decreaseSystemLoadBy(FakeLoad load) |
void |
DefaultSimulationInfrastructure.decreaseSystemLoadBy(FakeLoad load) |
void |
FakeLoadExecutor.execute(FakeLoad load)
Executes the specified fake load.
|
void |
DefaultFakeLoadExecutor.execute(FakeLoad load) |
void |
SystemLoad.increaseBy(FakeLoad load) |
void |
SimulationInfrastructure.increaseSystemLoadBy(FakeLoad load)
Increases the system load simulated by the simulation infrastructure
by the specified
FakeLoad instance |
void |
LoadController.increaseSystemLoadBy(FakeLoad load) |
void |
DefaultSimulationInfrastructure.increaseSystemLoadBy(FakeLoad load) |
Future<Void> |
FakeLoadScheduler.schedule(FakeLoad fakeLoad)
Schedules a
FakeLoad's load instructions for execution at the right time. |
Future<Void> |
DefaultFakeLoadScheduler.schedule(FakeLoad fakeLoad) |
| Modifier and Type | Method and Description |
|---|---|
FakeLoadBuilder |
FakeLoadBuilder.addLoads(Collection<FakeLoad> loads) |
FakeLoad |
FakeLoad.addLoads(Collection<FakeLoad> loads)
Adds the specified
FakeLoad objects to this FakeLoad's inner loads. |
Copyright © 2017. All rights reserved.