Skip navigation links
FakeLoad, 0.4.0
A B C D E F G I L M N R S T V W 

A

AbstractLoadSimulator - Class in com.martensigwart.fakeload
Skeleton LoadSimulator implementation.
AbstractLoadSimulator(long, String) - Constructor for class com.martensigwart.fakeload.AbstractLoadSimulator
 
addLoad(FakeLoad) - Method in interface com.martensigwart.fakeload.FakeLoad
Adds the specified FakeLoad object to this FakeLoad's inner loads.
addLoad(FakeLoad) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 
addLoads(Collection<FakeLoad>) - Method in interface com.martensigwart.fakeload.FakeLoad
Adds the specified FakeLoad objects to this FakeLoad's inner loads.
addLoads(Collection<FakeLoad>) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 

B

build() - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 

C

com.martensigwart.fakeload - package com.martensigwart.fakeload
 
contains(FakeLoad) - Method in interface com.martensigwart.fakeload.FakeLoad
Determines whether the specified FakeLoad object in contained within the FakeLoad on which this method was called.
CpuSimulator - Class in com.martensigwart.fakeload
Skeleton implementation of a CPU Simulator
create() - Static method in class com.martensigwart.fakeload.FakeLoads
Creates a new empty FakeLoad instance.

D

decreaseBy(FakeLoad) - Method in class com.martensigwart.fakeload.SystemLoad
 
decreaseLoad(long) - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
decreaseLoad(long) - Method in interface com.martensigwart.fakeload.LoadSimulator
Decreases the load of the simulator by delta.
decreaseSystemLoadBy(FakeLoad) - Method in class com.martensigwart.fakeload.DefaultSimulationInfrastructure
 
decreaseSystemLoadBy(FakeLoad) - Method in class com.martensigwart.fakeload.LoadController
 
decreaseSystemLoadBy(FakeLoad) - Method in interface com.martensigwart.fakeload.SimulationInfrastructure
Decreases the system load simulated by the simulation infrastructure by the specified FakeLoad
DefaultFakeLoadExecutor - Class in com.martensigwart.fakeload
The default FakeLoadExecutor implementation.
DefaultFakeLoadExecutor(FakeLoadScheduler) - Constructor for class com.martensigwart.fakeload.DefaultFakeLoadExecutor
Creates a new DefaultFakeLoadExecutor instance.
DefaultFakeLoadScheduler - Class in com.martensigwart.fakeload
Default implementation of the FakeLoadScheduler interface.
DefaultFakeLoadScheduler(SimulationInfrastructure) - Constructor for class com.martensigwart.fakeload.DefaultFakeLoadScheduler
Creates a new DefaultFakeLoadScheduler instance using the specified infrastructure
DefaultSimulationInfrastructure - Class in com.martensigwart.fakeload
Default implementation class of SimulationInfrastructure.
DefaultSimulationInfrastructure(ExecutorService, LoadController) - Constructor for class com.martensigwart.fakeload.DefaultSimulationInfrastructure
Creates a new DefaultSimulationInfrastructure instance using the provided ExecutorService and LoadController.
DiskInputSimulator - Class in com.martensigwart.fakeload
Skeleton implementation of a LoadSimulator that simulates disk input.
DiskOutputSimulator - Class in com.martensigwart.fakeload
Skeleton implementation of a LoadSimulator that simulates disk output Disk output is simulated by writing an amount of bytes to a file.

E

execute(FakeLoad) - Method in class com.martensigwart.fakeload.DefaultFakeLoadExecutor
 
execute(FakeLoad) - Method in interface com.martensigwart.fakeload.FakeLoadExecutor
Executes the specified fake load.

F

FakeLoad - Interface in com.martensigwart.fakeload
An object containing instructions for simulating system load.
FakeLoadBuilder - Class in com.martensigwart.fakeload
A FakeLoad builder which can be used to create FakeLoad instances more efficiently.
FakeLoadBuilder(long, TimeUnit) - Constructor for class com.martensigwart.fakeload.FakeLoadBuilder
 
FakeLoadBuilder() - Constructor for class com.martensigwart.fakeload.FakeLoadBuilder
 
FakeLoadExecutor - Interface in com.martensigwart.fakeload
An object that executes submitted FakeLoad objects.
FakeLoadExecutors - Class in com.martensigwart.fakeload
Factory methods that create FakeLoadExecutor instances.
FakeLoads - Class in com.martensigwart.fakeload
Factory and utility methods for FakeLoad classes defined in this package.
FakeLoadScheduler - Interface in com.martensigwart.fakeload
Object that schedules submitted FakeLoad objects.
FibonacciCpuSimulator - Class in com.martensigwart.fakeload
A CpuSimulator that simulates CPU by calculating Fibonacci sequences.
FibonacciCpuSimulator() - Constructor for class com.martensigwart.fakeload.FibonacciCpuSimulator
 

G

getCpu() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the CPU load in percent
getCpu() - Method in class com.martensigwart.fakeload.SystemLoad
 
getCpuSimulators() - Method in class com.martensigwart.fakeload.LoadController
 
getDiskInput() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the disk input load in bytes per second
getDiskInput() - Method in class com.martensigwart.fakeload.SystemLoad
 
getDiskInputSimulator() - Method in class com.martensigwart.fakeload.LoadController
 
getDiskOutput() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the disk output load in bytes per second
getDiskOutput() - Method in class com.martensigwart.fakeload.SystemLoad
 
getDiskOutputSimulator() - Method in class com.martensigwart.fakeload.LoadController
 
getDuration() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the duration of this FakeLoad system load configuration.
getInnerLoads() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the inner FakeLoad objects of this FakeLoad
getLoad() - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
getLoad() - Method in interface com.martensigwart.fakeload.LoadSimulator
 
getMaximumLoad() - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
getMaximumLoad() - Method in interface com.martensigwart.fakeload.LoadSimulator
 
getMemory() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the memory load in bytes
getMemory() - Method in class com.martensigwart.fakeload.SystemLoad
 
getMemorySimulator() - Method in class com.martensigwart.fakeload.LoadController
 
getRepetitions() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the number of desired repetitions of this FakeLoad object.
getTimeUnit() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns the time unit of the duration specified by FakeLoad.getDuration().

I

increaseBy(FakeLoad) - Method in class com.martensigwart.fakeload.SystemLoad
 
increaseLoad(long) - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
increaseLoad(long) - Method in interface com.martensigwart.fakeload.LoadSimulator
Increases the load of the simulator by delta.
increaseSystemLoadBy(FakeLoad) - Method in class com.martensigwart.fakeload.DefaultSimulationInfrastructure
 
increaseSystemLoadBy(FakeLoad) - Method in class com.martensigwart.fakeload.LoadController
 
increaseSystemLoadBy(FakeLoad) - Method in interface com.martensigwart.fakeload.SimulationInfrastructure
Increases the system load simulated by the simulation infrastructure by the specified FakeLoad instance
isMaximumLoad() - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
isMaximumLoad() - Method in interface com.martensigwart.fakeload.LoadSimulator
 
isZeroLoad() - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
isZeroLoad() - Method in interface com.martensigwart.fakeload.LoadSimulator
 
iterator() - Method in interface com.martensigwart.fakeload.FakeLoad
Returns an iterator of this FakeLoad object.

L

lasting(long, TimeUnit) - Method in interface com.martensigwart.fakeload.FakeLoad
Returns a FakeLoad instance containing the specified duration.
lasting(long, TimeUnit) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 
LoadController - Class in com.martensigwart.fakeload
This class acts as the controlling entity of the DefaultSimulationInfrastructure.
LoadController(SystemLoad, List<CpuSimulator>, MemorySimulator, DiskInputSimulator, DiskOutputSimulator) - Constructor for class com.martensigwart.fakeload.LoadController
 
LoadSimulator - Interface in com.martensigwart.fakeload
Represents a thread simulating some system load.

M

MaximumLoadExceededException - Exception in com.martensigwart.fakeload
Exception indicating the exceeding of load level.
MaximumLoadExceededException(String) - Constructor for exception com.martensigwart.fakeload.MaximumLoadExceededException
 
MaximumLoadExceededException(Throwable) - Constructor for exception com.martensigwart.fakeload.MaximumLoadExceededException
 
MaximumLoadExceededException(String, Throwable) - Constructor for exception com.martensigwart.fakeload.MaximumLoadExceededException
 
mbString(long) - Static method in enum com.martensigwart.fakeload.MemoryUnit
 
MemorySimulator - Class in com.martensigwart.fakeload
 
MemorySimulator() - Constructor for class com.martensigwart.fakeload.MemorySimulator
 
MemoryUnit - Enum in com.martensigwart.fakeload
Enum representing different memory units like bytes, kilobytes, megabytes, gigabytes.

N

newDefaultExecutor() - Static method in class com.martensigwart.fakeload.FakeLoadExecutors
Creates a DefaultFakeLoadExecutor instance for executing FakeLoad objects.

R

RandomAccessDiskInputSimulator - Class in com.martensigwart.fakeload
A DiskInputSimulator that simulates disk input using an underlying RandomAccessFile.
RandomAccessDiskInputSimulator(String) - Constructor for class com.martensigwart.fakeload.RandomAccessDiskInputSimulator
 
RandomAccessDiskOutputSimulator - Class in com.martensigwart.fakeload
A DiskOutputSimulator that simulates disk output using an underlying RandomAccessFile.
RandomAccessDiskOutputSimulator(String) - Constructor for class com.martensigwart.fakeload.RandomAccessDiskOutputSimulator
 
repeat(int) - Method in interface com.martensigwart.fakeload.FakeLoad
Returns a FakeLoad instance with the number of specified repetitions set.
repeat(int) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 
run() - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
run() - Method in class com.martensigwart.fakeload.LoadController
 
run() - Method in interface com.martensigwart.fakeload.LoadSimulator
Executes the simulation logic.

S

schedule(FakeLoad) - Method in class com.martensigwart.fakeload.DefaultFakeLoadScheduler
 
schedule(FakeLoad) - Method in interface com.martensigwart.fakeload.FakeLoadScheduler
Schedules a FakeLoad's load instructions for execution at the right time.
setLoad(long) - Method in class com.martensigwart.fakeload.AbstractLoadSimulator
 
setLoad(long) - Method in interface com.martensigwart.fakeload.LoadSimulator
Sets the load to be simulated.
simulateCpu() - Method in class com.martensigwart.fakeload.FibonacciCpuSimulator
 
simulateLoad(long) - Method in class com.martensigwart.fakeload.DiskInputSimulator
 
SimulationInfrastructure - Interface in com.martensigwart.fakeload
Represents a simulation infrastructure in which system load as specified by FakeLoad objects is simulated.
SystemLoad - Class in com.martensigwart.fakeload
Class representing system load.
SystemLoad() - Constructor for class com.martensigwart.fakeload.SystemLoad
 

T

toBytes(long) - Method in enum com.martensigwart.fakeload.MemoryUnit
 
toGB(long) - Method in enum com.martensigwart.fakeload.MemoryUnit
 
toKB(long) - Method in enum com.martensigwart.fakeload.MemoryUnit
 
toMB(long) - Method in enum com.martensigwart.fakeload.MemoryUnit
 

V

valueOf(String) - Static method in enum com.martensigwart.fakeload.MemoryUnit
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.martensigwart.fakeload.MemoryUnit
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitConditionFulfilled() - Method in class com.martensigwart.fakeload.DiskInputSimulator
 
withCpu(int) - Method in interface com.martensigwart.fakeload.FakeLoad
Returns a FakeLoad instance with the specified CPU load.
withCpu(int) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 
withDiskInput(long, MemoryUnit) - Method in interface com.martensigwart.fakeload.FakeLoad
Returns a FakeLoad instance with the specified disk input load as bytes/seconds.
withDiskInput(long, MemoryUnit) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 
withDiskOutput(long, MemoryUnit) - Method in interface com.martensigwart.fakeload.FakeLoad
Returns a FakeLoad instance with the specified disk output load as bytes/seconds.
withDiskOutput(long, MemoryUnit) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 
withMemory(long, MemoryUnit) - Method in interface com.martensigwart.fakeload.FakeLoad
Returns a FakeLoad instance with the specified memory load.
withMemory(long, MemoryUnit) - Method in class com.martensigwart.fakeload.FakeLoadBuilder
 
A B C D E F G I L M N R S T V W 
Skip navigation links
FakeLoad, 0.4.0

Copyright © 2017. All rights reserved.