I
- Input type of Task FarmO
- Output type of Task FarmT
- Type of enclosed stagepublic class TaskFarmConfiguration<I,O,T extends ITaskFarmDuplicable<I,O>> extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INIT_SAMPLES_UNTIL_REMOVE
represents an initial value for the samples until remove for TaskFarmReconfigurationCommandService
|
Modifier and Type | Method and Description |
---|---|
int |
getAdaptationWaitingTimeMillis() |
int |
getAnalysisWindow() |
int |
getMaxNumberOfCores() |
int |
getMaxSamplesUntilRemove() |
int |
getPipeCapacity() |
String |
getThroughputAlgorithm() |
double |
getThroughputScoreBoundary() |
WeightedAlgorithm.WeightMethod |
getWeightedAlgorithmMethod() |
boolean |
isMonitoringEnabled() |
void |
setAdaptationWaitingTimeMillis(int adaptationWaitingTimeMillis) |
void |
setAnalysisWindow(int analysisWindow) |
void |
setMaxNumberOfCores(int maxNumberOfCores) |
void |
setMaxSamplesUntilRemove(int maxSamplesUntilRemove) |
void |
setMonitoringEnabled(boolean monitoringEnabled) |
void |
setPipeCapacity(int pipeCapacity) |
void |
setThroughputAlgorithm(String throughputAlgorithm) |
void |
setThroughputScoreBoundary(double throughputScoreBoundary) |
void |
setWeightedAlgorithmMethod(WeightedAlgorithm.WeightMethod weightedAlgorithmMethod) |
public static final int INIT_SAMPLES_UNTIL_REMOVE
public int getAnalysisWindow()
public void setAnalysisWindow(int analysisWindow)
analysisWindow
- the amount of previous measurements used by the throughput algorithmpublic String getThroughputAlgorithm()
teetime.stage.taskfarm.adaptation.analysis.algorithm
)public void setThroughputAlgorithm(String throughputAlgorithm)
throughputAlgorithm
- used throughput algorithm (has to exist in the package teetime.stage.taskfarm.adaptation.analysis.algorithm
)public WeightedAlgorithm.WeightMethod getWeightedAlgorithmMethod()
WeightedAlgorithm
is used as the throughput algorithm, this
WeightMethod
is usedpublic void setWeightedAlgorithmMethod(WeightedAlgorithm.WeightMethod weightedAlgorithmMethod)
weightedAlgorithmMethod
- if the WeightedAlgorithm
is used as the throughput algorithm, this
WeightMethod
is usedpublic int getMaxSamplesUntilRemove()
public void setMaxSamplesUntilRemove(int maxSamplesUntilRemove)
maxSamplesUntilRemove
- the TaskFarmReconfigurationCommandService waits this amount of adaptation thread iterations for performance improvements after a new worker stage
is
addedpublic double getThroughputScoreBoundary()
public void setThroughputScoreBoundary(double throughputScoreBoundary)
throughputScoreBoundary
- throughput boundary of this task farmpublic boolean isMonitoringEnabled()
public void setMonitoringEnabled(boolean monitoringEnabled)
monitoringEnabled
- should the monitoring services be activated (does not affect the adaptation thread!)?public int getAdaptationWaitingTimeMillis()
public void setAdaptationWaitingTimeMillis(int adaptationWaitingTimeMillis)
adaptationWaitingTimeMillis
- the waiting time between each iteration of the adaptation threadpublic int getPipeCapacity()
public void setPipeCapacity(int pipeCapacity)
pipeCapacity
- pipe capacity of all pipes inside the task farmpublic int getMaxNumberOfCores()
public void setMaxNumberOfCores(int maxNumberOfCores)
maxNumberOfCores
- the maximum number of worker stages the task farm may haveCopyright © 2015–2020. All rights reserved.