public class StatsServiceImpl extends AbstractService implements StatsService
logger| Constructor and Description |
|---|
StatsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
void |
doStatsWork(StatsWork work,
java.lang.String statsWorkName)
Process the given
StatsWork. |
protected void |
doStop() |
com.newrelic.api.agent.MetricAggregator |
getMetricAggregator() |
StatsEngine |
getStatsEngineForHarvest(java.lang.String appName)
Get a
StatsEngine containing the metric data to be sent to the server in the next harvest. |
boolean |
isEnabled()
Is the service enabled.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stoppublic boolean isEnabled()
Serviceprotected void doStart()
doStart in class AbstractServiceprotected void doStop()
doStop in class AbstractServicepublic void doStatsWork(StatsWork work, java.lang.String statsWorkName)
StatsServiceStatsWork.doStatsWork in interface StatsServicepublic StatsEngine getStatsEngineForHarvest(java.lang.String appName)
StatsServiceStatsEngine containing the metric data to be sent to the server in the next harvest.
This should only be called by the HarvestServicegetStatsEngineForHarvest in interface StatsServicepublic com.newrelic.api.agent.MetricAggregator getMetricAggregator()
getMetricAggregator in interface StatsService