public class ThroughputHistory extends Object
ThroughputEntry
.Constructor and Description |
---|
ThroughputHistory()
Creates a new throughput history with the analysis window of 20 (for testing purposes)
|
ThroughputHistory(TaskFarmConfiguration<?,?,?> configuration)
Creates a new throughput history with the analysis window specified in the configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double throughput)
Adds a throughput to the beginning of the history.
|
List<teetime.stage.taskfarm.adaptation.history.ThroughputEntry> |
getEntries() |
double |
getThroughputOfEntry(int entry)
Gets the throughput value at a given history position.
|
long |
getTimestampOfEntry(int entry)
Gets the timestamp value at a given history position.
|
public ThroughputHistory(TaskFarmConfiguration<?,?,?> configuration)
configuration
- configuration of corresponding task farmpublic ThroughputHistory()
public List<teetime.stage.taskfarm.adaptation.history.ThroughputEntry> getEntries()
public void add(double throughput)
throughput
- new measured throughput valuepublic double getThroughputOfEntry(int entry)
entry
- history indexpublic long getTimestampOfEntry(int entry)
entry
- history indexCopyright © 2015–2020. All rights reserved.