public class SingleTaskFarmMonitoringService extends Object implements IMonitoringService<DynamicTaskFarmStage<?,?,?>,TaskFarmMonitoringData>
Constructor and Description |
---|
SingleTaskFarmMonitoringService(DynamicTaskFarmStage<?,?,?> taskFarmStage,
TaskFarmHistoryService<?,?,?> history)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMonitoredItem(DynamicTaskFarmStage<?,?,?> taskFarmStage)
Add object to list of monitored elements.
|
void |
doMeasurement()
Adds a new measurement.
|
List<TaskFarmMonitoringData> |
getData() |
int |
getMaxNumberOfStages() |
public SingleTaskFarmMonitoringService(DynamicTaskFarmStage<?,?,?> taskFarmStage, TaskFarmHistoryService<?,?,?> history)
taskFarmStage
- task farm to be monitoredhistory
- task farm history service to access the latest throughput measurementpublic List<TaskFarmMonitoringData> getData()
getData
in interface IMonitoringService<DynamicTaskFarmStage<?,?,?>,TaskFarmMonitoringData>
public void addMonitoredItem(DynamicTaskFarmStage<?,?,?> taskFarmStage)
IMonitoringService
addMonitoredItem
in interface IMonitoringService<DynamicTaskFarmStage<?,?,?>,TaskFarmMonitoringData>
taskFarmStage
- object to be monitoredpublic void doMeasurement()
IMonitoringService
doMeasurement
in interface IMonitoringService<DynamicTaskFarmStage<?,?,?>,TaskFarmMonitoringData>
public int getMaxNumberOfStages()
Copyright © 2015–2020. All rights reserved.