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 |
protected static org.apache.log4j.Logger |
log |
static String |
POLLHOSTS_OPT |
static String |
POLLPERIOD_OPT |
COLLECTOR_TIMEOUT_OPT, collectors
Constructor and Description |
---|
AsyncAckSender(org.apache.hadoop.conf.Configuration conf,
ChukwaAgent a) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
failedCollector(String downed)
A hook for taking action when a collector is declared failed.
|
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() |
doRequest, reliablySend, send
protected static org.apache.log4j.Logger log
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
public 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
InterruptedException
protected boolean failedCollector(String downed)
ChukwaHttpSender
failedCollector
in class ChukwaHttpSender
public void stop()
stop
in interface ChukwaSender
stop
in class ChukwaHttpSender
Copyright © 2014 Apache Software Foundation. All Rights Reserved.