public class LatencyStoringServiceMonitorAdaptor extends Object implements ServiceMonitorAdaptor
LatencyStoringServiceMonitorAdaptor class.
Modifier and Type | Field and Description |
---|---|
static int |
HEARTBEAT_STEP_MULTIPLIER |
Constructor and Description |
---|
LatencyStoringServiceMonitorAdaptor(PollerConfig config,
Package pkg,
PersisterFactory persisterFactory,
ResourceStorageDao resourceStorageDao)
Constructor for LatencyStoringServiceMonitorAdaptor.
|
Modifier and Type | Method and Description |
---|---|
PollStatus |
handlePollResult(MonitoredService svc,
Map<String,Object> parameters,
PollStatus status) |
void |
refreshThresholds()
Should be called when thresholds configuration has been reloaded
|
public static final int HEARTBEAT_STEP_MULTIPLIER
public LatencyStoringServiceMonitorAdaptor(PollerConfig config, Package pkg, PersisterFactory persisterFactory, ResourceStorageDao resourceStorageDao)
Constructor for LatencyStoringServiceMonitorAdaptor.
monitor
- a ServiceMonitor
object.config
- a PollerConfig
object.pkg
- a Package
object.public PollStatus handlePollResult(MonitoredService svc, Map<String,Object> parameters, PollStatus status)
handlePollResult
in interface ServiceMonitorAdaptor
public void refreshThresholds()
Copyright © 2018. All rights reserved.