me.moocar.logbackgelf
Class Transport

java.lang.Object
  extended by me.moocar.logbackgelf.Transport

public class Transport
extends Object

Responsible for sending packet(s) to the graylog2 server


Constructor Summary
Transport(int graylog2ServerPort, InetAddress graylog2ServerAddress)
           
 
Method Summary
 void send(byte[] data)
          Sends a single packet GELF message to the graylog2 server
 void send(List<byte[]> packets)
          Sends a bunch of GELF Chunks to the graylog2 server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transport

public Transport(int graylog2ServerPort,
                 InetAddress graylog2ServerAddress)
Method Detail

send

public void send(byte[] data)
Sends a single packet GELF message to the graylog2 server

Parameters:
data - gzipped GELF Message (JSON)

send

public void send(List<byte[]> packets)
Sends a bunch of GELF Chunks to the graylog2 server

Parameters:
packets - The packets to send over the wire


Copyright © 2011-2014. All Rights Reserved.