org.opennms.web.category
Class RTCPostSubscriber

java.lang.Object
  extended by org.opennms.web.category.RTCPostSubscriber

public class RTCPostSubscriber
extends Object

RTCPostSubscriber class.

Version:
$Id: $
Author:
Larry Karnowski , OpenNMS , Larry Karnowski , OpenNMS

Field Summary
protected static ThreadCategory log
          Constant log
protected  String m_password
           
protected  EventProxy m_proxy
           
protected  String m_url
           
protected  String m_username
           
 
Constructor Summary
RTCPostSubscriber()
          Constructor for RTCPostSubscriber.
 
Method Summary
 void close()
          close
protected  void initFromRtcPropertyFile(String categoryName)
          initFromRtcPropertyFile
static void sendSubscribeEvent(EventProxy proxy, String url, String username, String password, String categoryName)
          sendSubscribeEvent
static void sendUnsubscribeEvent(EventProxy proxy, String url)
          sendUnsubscribeEvent
 String subscribe(String categoryName)
          subscribe
static void subscribeAll(String viewName)
          subscribeAll
 void unsubscribe()
          unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_proxy

protected EventProxy m_proxy

m_url

protected String m_url

m_username

protected String m_username

m_password

protected String m_password

log

protected static ThreadCategory log
Constant log

Constructor Detail

RTCPostSubscriber

public RTCPostSubscriber()
                  throws IOException,
                         org.exolab.castor.xml.MarshalException,
                         org.exolab.castor.xml.ValidationException

Constructor for RTCPostSubscriber.

Throws:
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
Method Detail

sendSubscribeEvent

public static void sendSubscribeEvent(EventProxy proxy,
                                      String url,
                                      String username,
                                      String password,
                                      String categoryName)
                               throws 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:
IllegalArgumentException - if any.
EventProxyException - if any.

sendUnsubscribeEvent

public static void sendUnsubscribeEvent(EventProxy proxy,
                                        String url)
                                 throws IllegalArgumentException,
                                        EventProxyException

sendUnsubscribeEvent

Parameters:
proxy - a EventProxy object.
url - a String object.
Throws:
IllegalArgumentException - if any.
EventProxyException - if any.

subscribe

public String subscribe(String categoryName)
                 throws IllegalArgumentException,
                        EventProxyException

subscribe

Parameters:
categoryName - a String object.
Returns:
a String object.
Throws:
IllegalArgumentException - if any.
EventProxyException - if any.

unsubscribe

public void unsubscribe()
                 throws IllegalArgumentException,
                        EventProxyException

unsubscribe

Throws:
IllegalArgumentException - if any.
EventProxyException - if any.

close

public void close()

close


initFromRtcPropertyFile

protected void initFromRtcPropertyFile(String categoryName)

initFromRtcPropertyFile

Parameters:
categoryName - a String object.

subscribeAll

public static void subscribeAll(String viewName)
                         throws IOException,
                                org.exolab.castor.xml.MarshalException,
                                org.exolab.castor.xml.ValidationException,
                                EventProxyException

subscribeAll

Parameters:
viewName - a String object.
Throws:
IOException - if any.
org.exolab.castor.xml.MarshalException - if any.
org.exolab.castor.xml.ValidationException - if any.
EventProxyException - if any.


Copyright © 2011. All Rights Reserved.