public class AsyncAckSender extends ChukwaHttpSender
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncAckSender.DelayedCommit |
ChukwaHttpSender.CommitListEntry| Modifier and Type | Field and Description |
|---|---|
AdaptorResetThread |
adaptorReset |
static String |
POLLHOSTS_OPT |
static String |
POLLPERIOD_OPT |
COLLECTOR_TIMEOUT_OPT| Constructor and Description |
|---|
AsyncAckSender(org.apache.hadoop.conf.Configuration conf,
ChukwaAgent a) |
| Modifier and Type | Method and Description |
|---|---|
List<ChukwaHttpSender.CommitListEntry> |
postAndParseResponse(org.apache.commons.httpclient.methods.PostMethod method,
List<ChukwaHttpSender.CommitListEntry> expectedCommitResults) |
void |
setCollectors(Iterator<String> collectors)
Set up a list of connectors for this client to send
Chunks to |
void |
stop() |
sendpublic static final String POLLPERIOD_OPT
public static final String POLLHOSTS_OPT
public AdaptorResetThread adaptorReset
public AsyncAckSender(org.apache.hadoop.conf.Configuration conf,
ChukwaAgent a)
throws IOException
IOExceptionpublic void setCollectors(Iterator<String> collectors)
ChukwaHttpSenderChunks tosetCollectors in interface ChukwaSendersetCollectors in class ChukwaHttpSendercollectors - is a list of collectorspublic List<ChukwaHttpSender.CommitListEntry> postAndParseResponse(org.apache.commons.httpclient.methods.PostMethod method, List<ChukwaHttpSender.CommitListEntry> expectedCommitResults) throws IOException, InterruptedException
postAndParseResponse in class ChukwaHttpSendermethod - the data to pushexpectedCommitResults - the listIOException - if error writingInterruptedException - if shutdown has been initiatedpublic void stop()
stop in interface ChukwaSenderstop in class ChukwaHttpSenderCopyright © 2016 Apache Software Foundation. All Rights Reserved.