Class TcpEventProxy
- java.lang.Object
-
- org.opennms.netmgt.events.api.support.TcpEventProxy
-
- All Implemented Interfaces:
EventProxy
public final class TcpEventProxy extends 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.ConstantDEFAULT_PORT=5817
static int
DEFAULT_TIMEOUT
Deprecated.ConstantDEFAULT_TIMEOUT=2000
-
Constructor Summary
Constructors Constructor Description TcpEventProxy()
Deprecated.Constructor for TcpEventProxy.TcpEventProxy(InetSocketAddress address)
Deprecated.Constructor for TcpEventProxy.TcpEventProxy(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 outvoid
send(Log eventLog)
Deprecated.This method is called to send an event log containing multiple events out.
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
Deprecated.ConstantDEFAULT_PORT=5817
- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
Deprecated.ConstantDEFAULT_TIMEOUT=2000
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TcpEventProxy
public TcpEventProxy() throws UnknownHostException
Deprecated.Constructor for TcpEventProxy.
- Throws:
UnknownHostException
- if any.
-
TcpEventProxy
public TcpEventProxy(InetSocketAddress address)
Deprecated.Constructor for TcpEventProxy.
- Parameters:
address
- aInetSocketAddress
object.
-
TcpEventProxy
public TcpEventProxy(InetSocketAddress address, int timeout)
Deprecated.Constructor for TcpEventProxy.
- Parameters:
address
- aInetSocketAddress
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 interfaceEventProxy
- Parameters:
event
- the event to be sent out- Throws:
UndeclaredThrowableException
- thrown if the send fails for any reasonEventProxyException
- 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 interfaceEventProxy
- Parameters:
eventLog
- the events to be sent out- Throws:
UndeclaredThrowableException
- thrown if the send fails for any reasonEventProxyException
- if any.
-
-