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 Object implements SpringServiceDaemon, PerspectiveServiceTracker.Listener
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOG_PREFIX
static 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 String NAME
- See Also:
- Constant Field Values
-
LOG_PREFIX
public static final 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 Exception
Description copied from interface:SpringServiceDaemon
start
- Specified by:
start
in interfaceSpringServiceDaemon
- Throws:
Exception
- if any.
-
destroy
public void destroy() throws Exception
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Throws:
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, InetAddress ipAddress, String serviceName, 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 Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
handleReloadDaemonConfig
public void handleReloadDaemonConfig(IEvent event)
-
handlePerspectiveNodeLostService
public void handlePerspectiveNodeLostService(IEvent e)
-
handlePerspectiveNodeGainedService
public void handlePerspectiveNodeGainedService(IEvent e)
-
-