Class RTCPostSubscriber


  • public class RTCPostSubscriber
    extends java.lang.Object

    RTCPostSubscriber class.

    Author:
    Larry Karnowski, OpenNMS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected EventProxy m_proxy  
    • Constructor Summary

      Constructors 
      Constructor Description
      RTCPostSubscriber()
      Constructor for RTCPostSubscriber.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void sendSubscribeEvent​(EventProxy proxy, java.lang.String url, java.lang.String username, java.lang.String password, java.lang.String categoryName)
      sendSubscribeEvent
      protected static void sendUnsubscribeEvent​(EventProxy proxy, java.lang.String url)
      sendUnsubscribeEvent
      protected void subscribe​(java.lang.String categoryName)
      subscribe
      static void subscribeAll​(java.lang.String viewName)
      Fetch all of the categories that are part of the given View and send subscription events for each category.
      void unsubscribe​(java.lang.String url)
      unsubscribe
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RTCPostSubscriber

        public RTCPostSubscriber()
                          throws java.io.IOException

        Constructor for RTCPostSubscriber.

        Throws:
        java.io.IOException - if any.
    • Method Detail

      • sendSubscribeEvent

        protected static void sendSubscribeEvent​(EventProxy proxy,
                                                 java.lang.String url,
                                                 java.lang.String username,
                                                 java.lang.String password,
                                                 java.lang.String categoryName)
                                          throws java.lang.IllegalArgumentException,
                                                 EventProxyException

        sendSubscribeEvent

        Parameters:
        proxy - a EventProxy object.
        url - a String object.
        username - a String object.
        password - a String object.
        categoryName - a String object.
        Throws:
        java.lang.IllegalArgumentException - if any.
        EventProxyException - if any.
      • sendUnsubscribeEvent

        protected static void sendUnsubscribeEvent​(EventProxy proxy,
                                                   java.lang.String url)
                                            throws java.lang.IllegalArgumentException,
                                                   EventProxyException

        sendUnsubscribeEvent

        Parameters:
        proxy - a EventProxy object.
        url - a String object.
        Throws:
        java.lang.IllegalArgumentException - if any.
        EventProxyException - if any.
      • subscribe

        protected void subscribe​(java.lang.String categoryName)
                          throws java.lang.IllegalArgumentException,
                                 EventProxyException

        subscribe

        Parameters:
        categoryName - a String object.
        Throws:
        java.lang.IllegalArgumentException - if any.
        EventProxyException - if any.
      • unsubscribe

        public void unsubscribe​(java.lang.String url)
                         throws java.lang.IllegalArgumentException,
                                EventProxyException

        unsubscribe

        TODO: Call this during a destroy() or close() method
        Throws:
        java.lang.IllegalArgumentException - if any.
        EventProxyException - if any.
      • subscribeAll

        public static void subscribeAll​(java.lang.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:
        java.io.IOException - if any.
        EventProxyException - if any.