Class TcpEventProxy

  • All Implemented Interfaces:
    EventProxy

    public final class TcpEventProxy
    extends java.lang.Object
    implements EventProxy
    Deprecated.
    Use ActiveMQ JMS instead of a custom TCP protocol.
    This is the interface used to send events into the event subsystem - It is typically used by the poller framework plugins that perform service monitoring to send out appropriate events. Can also be used by capsd, discovery etc.
    Author:
    Sowmya Kumaraswamy , OpenNMS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_PORT
      Deprecated.
      Constant DEFAULT_PORT=5817
      static int DEFAULT_TIMEOUT
      Deprecated.
      Constant DEFAULT_TIMEOUT=2000
    • Constructor Summary

      Constructors 
      Constructor Description
      TcpEventProxy()
      Deprecated.
      Constructor for TcpEventProxy.
      TcpEventProxy​(java.net.InetSocketAddress address)
      Deprecated.
      Constructor for TcpEventProxy.
      TcpEventProxy​(java.net.InetSocketAddress address, int timeout)
      Deprecated.
      Constructor for TcpEventProxy.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void send​(Event event)
      Deprecated.
      This method is called to send the event out
      void send​(Log eventLog)
      Deprecated.
      This method is called to send an event log containing multiple events out.
      • Methods inherited from class java.lang.Object

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

      • DEFAULT_PORT

        public static final int DEFAULT_PORT
        Deprecated.
        Constant DEFAULT_PORT=5817
        See Also:
        Constant Field Values
      • DEFAULT_TIMEOUT

        public static final int DEFAULT_TIMEOUT
        Deprecated.
        Constant DEFAULT_TIMEOUT=2000
        See Also:
        Constant Field Values
    • Constructor Detail

      • TcpEventProxy

        public TcpEventProxy()
                      throws java.net.UnknownHostException
        Deprecated.

        Constructor for TcpEventProxy.

        Throws:
        java.net.UnknownHostException - if any.
      • TcpEventProxy

        public TcpEventProxy​(java.net.InetSocketAddress address)
        Deprecated.

        Constructor for TcpEventProxy.

        Parameters:
        address - a InetSocketAddress object.
      • TcpEventProxy

        public TcpEventProxy​(java.net.InetSocketAddress address,
                             int timeout)
        Deprecated.

        Constructor for TcpEventProxy.

        Parameters:
        address - a InetSocketAddress object.
        timeout - a int.
    • Method Detail

      • send

        public void send​(Event event)
                  throws EventProxyException
        Deprecated.
        This method is called to send the event out This method is called to send the event out
        Specified by:
        send in interface EventProxy
        Parameters:
        event - the event to be sent out
        Throws:
        java.lang.reflect.UndeclaredThrowableException - thrown if the send fails for any reason
        EventProxyException - thrown if the send fails for any reason
      • send

        public void send​(Log eventLog)
                  throws EventProxyException
        Deprecated.
        This method is called to send an event log containing multiple events out.
        Specified by:
        send in interface EventProxy
        Parameters:
        eventLog - the events to be sent out
        Throws:
        java.lang.reflect.UndeclaredThrowableException - thrown if the send fails for any reason
        EventProxyException - if any.