public class StatusCollector extends Object implements StatusSourceCollector
Modifier and Type | Field and Description |
---|---|
List<StatusSource> |
statusCollectors |
CLASS_VERSION
Constructor and Description |
---|
StatusCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addStatusSource(String name,
StatusSource source)
Adds a
StatusSource to the collection. |
JSONMap.JSONList |
getJSONReport()
A report of the different
StatusSource in JSON format. |
String |
getReport()
Convenience method that calls
getReport(boolean) with false . |
String |
getReport(boolean reset)
A report of the different
StatusSource in text format. |
void |
removeStatusSource(StatusSource pStatusSource) |
public List<StatusSource> statusCollectors
public void addStatusSource(String name, StatusSource source)
StatusSourceCollector
StatusSource
to the collection.addStatusSource
in interface StatusSourceCollector
name
- ignored, but needed to work with Nursery
.source
- the StatusSource
to add to this collectorpublic void removeStatusSource(StatusSource pStatusSource)
public String getReport(boolean reset)
StatusSourceCollector
StatusSource
in text format.getReport
in interface StatusSourceCollector
reset
- set to true
if you would like to reset the underlying StatusSource
after the report have been added to the reportpublic String getReport()
getReport(boolean)
with false
.getReport(boolean)
public JSONMap.JSONList getJSONReport()
StatusSourceCollector
StatusSource
in JSON format.getJSONReport
in interface StatusSourceCollector
© 1998- 2018 Stibo DX