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(DatagramPacket pkt, boolean copy)SyslogConnection(InetSocketAddress source, ByteBuffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatagramPacketcopyPacket(DatagramPacket packet)static DatagramPacketcopyPacket(InetAddress sourceAddress, int sourcePort, ByteBuffer buffer)ByteBuffergetBuffer()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
-
-
Constructor Detail
-
SyslogConnection
public SyslogConnection(DatagramPacket pkt, boolean copy)
-
SyslogConnection
public SyslogConnection(InetSocketAddress source, ByteBuffer buffer)
-
-
Method Detail
-
getSource
public InetSocketAddress getSource()
-
getBuffer
public ByteBuffer getBuffer()
-
copyPacket
public static DatagramPacket copyPacket(DatagramPacket packet)
-
copyPacket
public static DatagramPacket copyPacket(InetAddress sourceAddress, int sourcePort, ByteBuffer buffer)
-
-