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
Chunk s to |
void |
stop() |
send
public 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
IOException
public void setCollectors(Iterator<String> collectors)
ChukwaHttpSender
Chunk
s tosetCollectors
in interface ChukwaSender
setCollectors
in class ChukwaHttpSender
collectors
- 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 ChukwaHttpSender
method
- the data to pushexpectedCommitResults
- the listIOException
- if error writingInterruptedException
- if shutdown has been initiatedpublic void stop()
stop
in interface ChukwaSender
stop
in class ChukwaHttpSender
Copyright © 2016 Apache Software Foundation. All Rights Reserved.