public abstract class AbstractThroughputAlgorithm extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INVALID_SCORE
represents an invalid throughput score
|
protected int |
window
Number of recently measured throughput values that we will analyze.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractThroughputAlgorithm(TaskFarmConfiguration<?,?,?> configuration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract double |
doAnalysis(ThroughputHistory history)
Calculates a prediction for the most recent ThroughputEntry by means
of the last "window" entries.
|
double |
getTroughputAnalysis(ThroughputHistory history)
Calculates the throughput score for a given history.
|
public static final int INVALID_SCORE
protected final int window
protected AbstractThroughputAlgorithm(TaskFarmConfiguration<?,?,?> configuration)
configuration
- TaskFarmConfiguration of the Task Farm which
this algorithm is used forprotected abstract double doAnalysis(ThroughputHistory history)
history
- measured throughput values + timestampspublic final double getTroughputAnalysis(ThroughputHistory history)
history
- history of measured valuesCopyright © 2015–2020. All rights reserved.