Class PerspectivePollerd
- java.lang.Object
-
- org.opennms.netmgt.perspectivepoller.PerspectivePollerd
-
- All Implemented Interfaces:
SpringServiceDaemon
,PerspectiveServiceTracker.Listener
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
public class PerspectivePollerd extends java.lang.Object implements SpringServiceDaemon, PerspectiveServiceTracker.Listener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOG_PREFIX
static java.lang.String
NAME
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
LOG_PREFIX
public static final java.lang.String LOG_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PerspectivePollerd
@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)
-
-
Method Detail
-
start
public void start() throws java.lang.Exception
Description copied from interface:SpringServiceDaemon
start
- Specified by:
start
in interfaceSpringServiceDaemon
- Throws:
java.lang.Exception
- if any.
-
destroy
public void destroy() throws java.lang.Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
-
onServicePerspectiveAdded
public void onServicePerspectiveAdded(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective, ServicePerspective entity)
- Specified by:
onServicePerspectiveAdded
in interfacePerspectiveServiceTracker.Listener
-
onServicePerspectiveRemoved
public void onServicePerspectiveRemoved(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective)
- Specified by:
onServicePerspectiveRemoved
in interfacePerspectiveServiceTracker.Listener
-
buildJobKey
public static org.quartz.JobKey buildJobKey(PerspectiveServiceTracker.ServicePerspectiveRef servicePerspective)
-
buildJobKey
public static org.quartz.JobKey buildJobKey(int nodeId, java.net.InetAddress ipAddress, java.lang.String serviceName, java.lang.String perspectiveLocation)
-
getLocationAwarePollerClient
public LocationAwarePollerClient getLocationAwarePollerClient()
-
reportResult
protected void reportResult(PerspectivePolledService polledService, PollStatus pollResult)
-
persistResponseTimeData
public void persistResponseTimeData(PerspectivePolledService polledService, PollStatus pollStatus)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
handleReloadDaemonConfig
public void handleReloadDaemonConfig(IEvent event)
-
handlePerspectiveNodeLostService
public void handlePerspectiveNodeLostService(IEvent e)
-
handlePerspectiveNodeGainedService
public void handlePerspectiveNodeGainedService(IEvent e)
-
-