com.ning.metrics.eventtracker
Class HttpSender

java.lang.Object
  extended by com.ning.metrics.eventtracker.HttpSender

public class HttpSender
extends Object


Field Summary
static String URI_PATH
           
 
Constructor Summary
HttpSender(String collectorHost, int collectorPort, EventType eventType, long httpMaxWaitTimeInMillis)
           
 
Method Summary
 void close()
           
 void send(File file, com.ning.metrics.serialization.writer.CallbackHandler handler)
          Send a file full of events to the collector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_PATH

public static final String URI_PATH
See Also:
Constant Field Values
Constructor Detail

HttpSender

public HttpSender(String collectorHost,
                  int collectorPort,
                  EventType eventType,
                  long httpMaxWaitTimeInMillis)
Method Detail

send

public void send(File file,
                 com.ning.metrics.serialization.writer.CallbackHandler handler)
Send a file full of events to the collector. This does zero-bytes-copy by default (the async-http-client does it for us).

Parameters:
file - File to send
handler - callback handler for the serialization-writer library

close

public void close()


Copyright © 2010-2011 Ning, Inc.. All Rights Reserved.