public class DefaultStatisticsService extends java.lang.Object implements StatisticsService
| Constructor and Description |
|---|
DefaultStatisticsService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChart(StatisticsChart chart)
Adds all
StatisticsCollectors in StatisticsChart chart to the StatisticsService. |
boolean |
addCollector(BasicStatisticsCollector collector)
Adds the
StatisticsCollector collector to the StatisticsService. |
void |
afterPropertiesSet()
Finish initializing, register the not yet registered collectors in collector map and chart map at dataholder and
start the StatDaemon-Thread, when DefaultStatisticsService was created by Spring.
|
void |
destroy()
Stop the StatisticsDaemon-Thread.
|
StatisticsChart |
getChart(java.lang.String name)
Returns the
StatisticsChart identified by name, if available. |
boolean |
removeChart(java.lang.String name)
Removes all
StatisticsCollectors contained in StatisticsChart identified by name. |
boolean |
removeCollector(java.lang.String name)
Removes the
StatisticsCollector identified by name to the StatisticsService. |
void |
setCharts(java.util.Collection<StatisticsChart> charts) |
void |
setCollectors(java.util.Collection<BasicStatisticsCollector> collectors) |
void |
setDataHolder(StatisticsData dataHolder) |
void |
setInterval(long interval) |
void |
setStandaloneEnabled(boolean standaloneEnabled) |
public void setInterval(long interval)
public void setDataHolder(StatisticsData dataHolder)
public boolean addCollector(BasicStatisticsCollector collector)
StatisticsServiceStatisticsCollector collector to the StatisticsService.addCollector in interface StatisticsServicecollector - The StatisticsCollector to add to the StatisticsSerice.public boolean removeCollector(java.lang.String name)
StatisticsServiceStatisticsCollector identified by name to the StatisticsService.removeCollector in interface StatisticsServicename - The name of the new StatisticsService to remove.public boolean addChart(StatisticsChart chart)
StatisticsServiceStatisticsCollectors in StatisticsChart chart to the StatisticsService.addChart in interface StatisticsServicechart - The StatisticsChart containing the collectors that should be add.public boolean removeChart(java.lang.String name)
StatisticsServiceStatisticsCollectors contained in StatisticsChart identified by name.removeChart in interface StatisticsServicename - The name of the StatisticsChart containing the StatisticsCollectors to remove.public void destroy()
public void afterPropertiesSet()
public StatisticsChart getChart(java.lang.String name)
StatisticsServiceStatisticsChart identified by name, if available. Otherwise returns null.getChart in interface StatisticsServicepublic void setCharts(java.util.Collection<StatisticsChart> charts)
public void setCollectors(java.util.Collection<BasicStatisticsCollector> collectors)
public void setStandaloneEnabled(boolean standaloneEnabled)
Copyright © 2018 SAP SE. All Rights Reserved.