org.opennms.netmgt.utils
Class TcpEventProxy

java.lang.Object
  extended by org.opennms.netmgt.utils.TcpEventProxy
All Implemented Interfaces:
EventProxy

public final class TcpEventProxy
extends Object
implements EventProxy

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 aprropriate events. Can also be used by capsd, discovery etc.

Author:
Sowmya Kumaraswamy , OpenNMS

Field Summary
static int DEFAULT_PORT
           
static int DEFAULT_TIMEOUT
           
 
Constructor Summary
TcpEventProxy()
           
TcpEventProxy(InetSocketAddress address)
           
TcpEventProxy(InetSocketAddress address, int timeout)
           
 
Method Summary
 void send(Event event)
          This method is called to send the event out
 void send(Log eventLog)
          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
See Also:
Constant Field Values

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

TcpEventProxy

public TcpEventProxy()
              throws UnknownHostException
Throws:
UnknownHostException

TcpEventProxy

public TcpEventProxy(InetSocketAddress address)

TcpEventProxy

public TcpEventProxy(InetSocketAddress address,
                     int timeout)
Method Detail

send

public void send(Event event)
          throws EventProxyException
This method is called to send the event out

Specified by:
send in interface EventProxy
Parameters:
event - the event to be sent out
Throws:
UndeclaredThrowableException - thrown if the send fails for any reason
EventProxyException

send

public void send(Log eventLog)
          throws EventProxyException
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:
UndeclaredThrowableException - thrown if the send fails for any reason
EventProxyException


Copyright © 2009. All Rights Reserved.