com.ning.metrics.eventtracker
Class HttpSender
java.lang.Object
com.ning.metrics.eventtracker.HttpSender
public class HttpSender
- extends Object
|
Method Summary |
void |
close()
|
void |
send(File file,
com.ning.metrics.serialization.writer.CallbackHandler handler)
Send a file full of events to the collector. |
URI_PATH
public static final String URI_PATH
- See Also:
- Constant Field Values
HttpSender
public HttpSender(String collectorHost,
int collectorPort,
EventType eventType,
long httpMaxWaitTimeInMillis)
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 sendhandler - callback handler for the serialization-writer library
close
public void close()
Copyright © 2010-2011 Ning, Inc.. All Rights Reserved.