Package org.opennms.web.category
Class RTCPostSubscriber
- java.lang.Object
-
- org.opennms.web.category.RTCPostSubscriber
-
public class RTCPostSubscriber extends Object
RTCPostSubscriber class.
- Author:
- Larry Karnowski, OpenNMS
-
-
Field Summary
Fields Modifier and Type Field Description protected EventProxym_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 voidsendSubscribeEvent(EventProxy proxy, String url, String username, String password, String categoryName)sendSubscribeEventprotected static voidsendUnsubscribeEvent(EventProxy proxy, String url)sendUnsubscribeEventprotected voidsubscribe(String categoryName)subscribestatic voidsubscribeAll(String viewName)Fetch all of the categories that are part of the givenViewand send subscription events for each category.voidunsubscribe(String url)unsubscribe
-
-
-
Field Detail
-
m_proxy
protected final EventProxy m_proxy
-
-
Constructor Detail
-
RTCPostSubscriber
public RTCPostSubscriber() throws IOExceptionConstructor for RTCPostSubscriber.
- Throws:
IOException- if any.
-
-
Method Detail
-
sendSubscribeEvent
protected static void sendSubscribeEvent(EventProxy proxy, String url, String username, String password, String categoryName) throws IllegalArgumentException, EventProxyException
sendSubscribeEvent
- Parameters:
proxy- aEventProxyobject.url- aStringobject.username- aStringobject.password- aStringobject.categoryName- aStringobject.- Throws:
IllegalArgumentException- if any.EventProxyException- if any.
-
sendUnsubscribeEvent
protected static void sendUnsubscribeEvent(EventProxy proxy, String url) throws IllegalArgumentException, EventProxyException
sendUnsubscribeEvent
- Parameters:
proxy- aEventProxyobject.url- aStringobject.- Throws:
IllegalArgumentException- if any.EventProxyException- if any.
-
subscribe
protected void subscribe(String categoryName) throws IllegalArgumentException, EventProxyException
subscribe
- Parameters:
categoryName- aStringobject.- Throws:
IllegalArgumentException- if any.EventProxyException- if any.
-
unsubscribe
public void unsubscribe(String url) throws IllegalArgumentException, EventProxyException
unsubscribe
TODO: Call this during a destroy() or close() method- Throws:
IllegalArgumentException- if any.EventProxyException- if any.
-
subscribeAll
public static void subscribeAll(String viewName)
Fetch all of the categories that are part of the givenViewand send subscription events for each category.- Parameters:
viewName- aStringobject.- Throws:
IOException- if any.EventProxyException- if any.
-
-