Interface PollContext

    • Method Detail

      • getServiceName

        java.lang.String getServiceName()

        getServiceName

        Returns:
        a String object.
      • setServiceName

        void setServiceName​(java.lang.String serviceName)

        setServiceName

        Parameters:
        serviceName - a String object.
      • sendEvent

        void sendEvent​(Event event)

        sendEvent

        Parameters:
        event - the event to send
      • createEvent

        Event createEvent​(java.lang.String uei,
                          int nodeId,
                          java.lang.String address,
                          java.lang.String netMask,
                          java.util.Date date,
                          OnmsSnmpInterface snmpinterface)

        createEvent

        Parameters:
        uei - a String object.
        nodeId - a int.
        address - a String object.
        netMask - a String object.
        date - a Date object.
        snmpinterface - a OnmsSnmpInterface object.
        Returns:
        the event
      • get

        java.util.List<OnmsSnmpInterface> get​(int nodeId,
                                              java.lang.String criteria)

        get

        Parameters:
        nodeId - a int.
        criteria - a String object.
        Returns:
        The List of OnmsSnmpInterfaces to be polled
      • getPollableNodesByIp

        java.util.List<OnmsIpInterface> getPollableNodesByIp​(java.lang.String ipaddr)

        getPollableNodesByIp

        Parameters:
        ipaddr - the ip address of the node.
        Returns:
        The List of OnmsIpInterfaces to be polled
      • getPollableNodes

        java.util.List<OnmsIpInterface> getPollableNodes()

        getPollableNodes

        Returns:
        The List of OnmsIpInterfaces to be polled
      • getLocation

        java.lang.String getLocation​(java.lang.Integer nodeId)