Class Poller

    • Constructor Detail

      • Poller

        public Poller()

        Constructor for Poller.

    • Method Detail

      • setPersisterFactory

        public void setPersisterFactory​(PersisterFactory persisterFactory)
      • setOutageDao

        public void setOutageDao​(OutageDao outageDao)
      • setMonitoredServiceDao

        public void setMonitoredServiceDao​(MonitoredServiceDao monitoredServiceDao)
      • setTransactionTemplate

        public void setTransactionTemplate​(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
      • setEventIpcManager

        public void setEventIpcManager​(EventIpcManager eventIpcManager)

        setEventIpcManager

        Parameters:
        eventIpcManager - a org.opennms.netmgt.model.events.EventIpcManager object.
      • getEventIpcManager

        public EventIpcManager getEventIpcManager()

        getEventIpcManager

        Returns:
        a org.opennms.netmgt.model.events.EventIpcManager object.
      • getEventProcessor

        public org.opennms.netmgt.poller.PollerEventProcessor getEventProcessor()

        getEventProcessor

        Returns:
        a PollerEventProcessor object.
      • setEventProcessor

        public void setEventProcessor​(org.opennms.netmgt.poller.PollerEventProcessor eventProcessor)

        setEventProcessor

        Parameters:
        eventProcessor - a PollerEventProcessor object.
      • setPollerConfig

        public void setPollerConfig​(PollerConfig pollerConfig)

        setPollerConfig

        Parameters:
        pollerConfig - a PollerConfig object.
      • getScheduler

        public Scheduler getScheduler()

        getScheduler

        Returns:
        a Scheduler object.
      • setLocationAwarePollerClient

        public void setLocationAwarePollerClient​(LocationAwarePollerClient locationAwarePollerClient)
      • scheduleService

        public void scheduleService​(int nodeId,
                                    java.lang.String nodeLabel,
                                    java.lang.String nodeLocation,
                                    java.lang.String ipAddr,
                                    java.lang.String svcName,
                                    PollableNode pollableNode)

        scheduleService

        Parameters:
        nodeId - a int.
        nodeLabel - a String object.
        nodeLocation - a String object.
        ipAddr - a String object.
        svcName - a String object.
        pollableNode - a PollableNode object
      • pollableServiceInPackage

        public boolean pollableServiceInPackage​(java.lang.String ipAddr,
                                                java.lang.String serviceName,
                                                Package pkg)
      • refreshServicePackages

        public void refreshServicePackages()
      • getNumPolls

        public long getNumPolls()
        Returns the number of polls that have been executed so far.
        Returns:
        the number of polls that have been executed
      • getLoggingCategory

        public static java.lang.String getLoggingCategory()