Class RTCPostSubscriber

    • Field Detail

      • m_proxy

        protected final org.opennms.netmgt.events.api.EventProxy m_proxy
    • Constructor Detail

      • RTCPostSubscriber

        public RTCPostSubscriber()
                          throws IOException

        Constructor for RTCPostSubscriber.

        Throws:
        IOException - if any.
    • Method Detail

      • sendSubscribeEvent

        protected static void sendSubscribeEvent​(org.opennms.netmgt.events.api.EventProxy proxy,
                                                 String url,
                                                 String username,
                                                 String password,
                                                 String categoryName)
                                          throws IllegalArgumentException,
                                                 org.opennms.netmgt.events.api.EventProxyException

        sendSubscribeEvent

        Parameters:
        proxy - a EventProxy object.
        url - a String object.
        username - a String object.
        password - a String object.
        categoryName - a String object.
        Throws:
        IllegalArgumentException - if any.
        org.opennms.netmgt.events.api.EventProxyException - if any.
      • sendUnsubscribeEvent

        protected static void sendUnsubscribeEvent​(org.opennms.netmgt.events.api.EventProxy proxy,
                                                   String url)
                                            throws IllegalArgumentException,
                                                   org.opennms.netmgt.events.api.EventProxyException

        sendUnsubscribeEvent

        Parameters:
        proxy - a EventProxy object.
        url - a String object.
        Throws:
        IllegalArgumentException - if any.
        org.opennms.netmgt.events.api.EventProxyException - if any.
      • subscribe

        protected void subscribe​(String categoryName)
                          throws IllegalArgumentException,
                                 org.opennms.netmgt.events.api.EventProxyException

        subscribe

        Parameters:
        categoryName - a String object.
        Throws:
        IllegalArgumentException - if any.
        org.opennms.netmgt.events.api.EventProxyException - if any.
      • unsubscribe

        public void unsubscribe​(String url)
                         throws IllegalArgumentException,
                                org.opennms.netmgt.events.api.EventProxyException

        unsubscribe

        TODO: Call this during a destroy() or close() method
        Throws:
        IllegalArgumentException - if any.
        org.opennms.netmgt.events.api.EventProxyException - if any.
      • subscribeAll

        public static void subscribeAll​(String viewName)
        Fetch all of the categories that are part of the given View and send subscription events for each category.
        Parameters:
        viewName - a String object.
        Throws:
        IOException - if any.
        org.opennms.netmgt.events.api.EventProxyException - if any.