public interface SimulationInfrastructure
FakeLoad objects is simulated.
A simulation infrastructure is built up of different tasks. Each task serves a specific simulation purpose.
There should be tasks responsible for CPU load simulation, for memory simulation, etc. A SimulationInfrastructure
provides functionality for adjusting system loads via increase and decrease methods.
Class DefaultSimulationInfrastructure provides a default implementation of an infrastructure.
DefaultSimulationInfrastructure,
FakeLoad| Modifier and Type | Method and Description |
|---|---|
void |
decreaseSystemLoadBy(FakeLoad load)
Decreases the system load simulated by the simulation infrastructure
by the specified
FakeLoad |
void |
increaseSystemLoadBy(FakeLoad load)
Increases the system load simulated by the simulation infrastructure
by the specified
FakeLoad instance |
void increaseSystemLoadBy(FakeLoad load) throws MaximumLoadExceededException
FakeLoad instanceload - the load by which the overall system load is increasedMaximumLoadExceededException - in case the specified increase of the system load
would exceed the allowed maximum load of the systemvoid decreaseSystemLoadBy(FakeLoad load)
FakeLoadload - the load by which the overall system load is decreasedRuntimeException - in case the specified decrease would cause an illegal (e.g. negative) system loadCopyright © 2017. All rights reserved.