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 org.opennms.netmgt.events.api.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(org.opennms.netmgt.events.api.EventProxy proxy, String url, String username, String password, String categoryName)sendSubscribeEventprotected static voidsendUnsubscribeEvent(org.opennms.netmgt.events.api.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
-
-
-
Constructor Detail
-
RTCPostSubscriber
public RTCPostSubscriber() throws IOExceptionConstructor 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.EventProxyExceptionsendSubscribeEvent
- Parameters:
proxy- aEventProxyobject.url- aStringobject.username- aStringobject.password- aStringobject.categoryName- aStringobject.- 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.EventProxyExceptionsendUnsubscribeEvent
- Parameters:
proxy- aEventProxyobject.url- aStringobject.- 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- aStringobject.- 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 givenViewand send subscription events for each category.- Parameters:
viewName- aStringobject.- Throws:
IOException- if any.org.opennms.netmgt.events.api.EventProxyException- if any.
-
-