public class CPUSamplerService extends AbstractService implements HarvestListener
| Constructor and Description |
|---|
CPUSamplerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterHarvest(java.lang.String appName)
Called after the harvest.
|
void |
beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
Called before the harvest.
|
protected void |
doStart() |
protected void |
doStop() |
boolean |
isEnabled()
Is the service enabled.
|
getLogger, getName, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stopprotected void doStart()
doStart in class AbstractServiceprotected void doStop()
doStop in class AbstractServicepublic boolean isEnabled()
Servicepublic void beforeHarvest(java.lang.String appName,
StatsEngine statsEngine)
HarvestListenerbeforeHarvest in interface HarvestListenerpublic void afterHarvest(java.lang.String appName)
HarvestListenerafterHarvest in interface HarvestListener