public class PerspectivePollerd extends Object implements SpringServiceDaemon, PerspectiveServiceTracker.Listener
Modifier and Type | Field and Description |
---|---|
static String |
LOG_PREFIX |
static String |
NAME |
Constructor and Description |
---|
PerspectivePollerd(SessionUtils sessionUtils,
MonitoringLocationDao monitoringLocationDao,
PollerConfig pollerConfig,
MonitoredServiceDao monitoredServiceDao,
LocationAwarePollerClient locationAwarePollerClient,
ApplicationDao applicationDao,
CollectionAgentFactory collectionAgentFactory,
PersisterFactory persisterFactory,
EventForwarder eventForwarder,
ThresholdingService thresholdingService,
EventDao eventDao,
OutageDao outageDao,
TracerRegistry tracerRegistry,
PerspectiveServiceTracker tracker) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
static org.quartz.JobKey |
buildJobKey(int nodeId,
InetAddress ipAddress,
String serviceName,
String perspectiveLocation) |
static org.quartz.JobKey |
buildJobKey(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective) |
void |
destroy() |
LocationAwarePollerClient |
getLocationAwarePollerClient() |
void |
handlePerspectiveNodeGainedService(IEvent e) |
void |
handlePerspectiveNodeLostService(IEvent e) |
void |
handleReloadDaemonConfig(IEvent event) |
void |
onServicePerspectiveAdded(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective,
ServicePerspective entity) |
void |
onServicePerspectiveRemoved(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective) |
void |
persistResponseTimeData(PerspectivePolledService polledService,
PollStatus pollStatus) |
protected void |
reportResult(PerspectivePolledService polledService,
PollStatus pollResult) |
void |
start()
start
|
public static final String NAME
public static final String LOG_PREFIX
@Autowired public PerspectivePollerd(SessionUtils sessionUtils, MonitoringLocationDao monitoringLocationDao, PollerConfig pollerConfig, MonitoredServiceDao monitoredServiceDao, LocationAwarePollerClient locationAwarePollerClient, ApplicationDao applicationDao, CollectionAgentFactory collectionAgentFactory, PersisterFactory persisterFactory, EventForwarder eventForwarder, ThresholdingService thresholdingService, EventDao eventDao, OutageDao outageDao, TracerRegistry tracerRegistry, PerspectiveServiceTracker tracker)
public void start() throws Exception
SpringServiceDaemon
start
start
in interface SpringServiceDaemon
Exception
- if any.public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public void onServicePerspectiveAdded(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective, ServicePerspective entity)
onServicePerspectiveAdded
in interface PerspectiveServiceTracker.Listener
public void onServicePerspectiveRemoved(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective)
onServicePerspectiveRemoved
in interface PerspectiveServiceTracker.Listener
public static org.quartz.JobKey buildJobKey(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective)
public static org.quartz.JobKey buildJobKey(int nodeId, InetAddress ipAddress, String serviceName, String perspectiveLocation)
public LocationAwarePollerClient getLocationAwarePollerClient()
protected void reportResult(PerspectivePolledService polledService, PollStatus pollResult)
public void persistResponseTimeData(PerspectivePolledService polledService, PollStatus pollStatus)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void handleReloadDaemonConfig(IEvent event)
public void handlePerspectiveNodeLostService(IEvent e)
public void handlePerspectiveNodeGainedService(IEvent e)
Copyright © 2021. All rights reserved.