Class SyslogConnection

  • All Implemented Interfaces:
    Message

    public class SyslogConnection
    extends java.lang.Object
    implements Message
    • 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.DatagramPacket copyPacket​(java.net.DatagramPacket packet)  
      static java.net.DatagramPacket copyPacket​(java.net.InetAddress sourceAddress, int sourcePort, java.nio.ByteBuffer buffer)  
      java.nio.ByteBuffer getBuffer()  
      java.net.InetSocketAddress getSource()  
      • Methods inherited from class java.lang.Object

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

      • MAX_PACKET_SIZE

        public static final int MAX_PACKET_SIZE
        This size is used as the size of each ByteBuffer used to capture syslog messages.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SyslogConnection

        public SyslogConnection​(java.net.DatagramPacket pkt,
                                boolean copy)
      • SyslogConnection

        public SyslogConnection​(java.net.InetSocketAddress source,
                                java.nio.ByteBuffer buffer)
    • 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)