Package org.opennms.netmgt.syslogd.api
Class SyslogConnection
- java.lang.Object
-
- org.opennms.netmgt.syslogd.api.SyslogConnection
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_PACKET_SIZEThis size is used as the size of eachByteBufferused to capture syslog messages.-
Fields inherited from interface org.opennms.core.ipc.sink.api.Message
SINK_METRIC_CONSUMER_DOMAIN, SINK_METRIC_PRODUCER_DOMAIN
-
-
Constructor Summary
Constructors Constructor Description SyslogConnection(java.net.DatagramPacket pkt, boolean copy)SyslogConnection(java.net.InetSocketAddress source, java.nio.ByteBuffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.net.DatagramPacketcopyPacket(java.net.DatagramPacket packet)static java.net.DatagramPacketcopyPacket(java.net.InetAddress sourceAddress, int sourcePort, java.nio.ByteBuffer buffer)java.nio.ByteBuffergetBuffer()java.net.InetSocketAddressgetSource()
-
-
-
Field Detail
-
MAX_PACKET_SIZE
public static final int MAX_PACKET_SIZE
This size is used as the size of eachByteBufferused to capture syslog messages.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
public java.net.InetSocketAddress getSource()
-
getBuffer
public java.nio.ByteBuffer getBuffer()
-
copyPacket
public static java.net.DatagramPacket copyPacket(java.net.DatagramPacket packet)
-
copyPacket
public static java.net.DatagramPacket copyPacket(java.net.InetAddress sourceAddress, int sourcePort, java.nio.ByteBuffer buffer)
-
-