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
Chunks to |
void |
stop() |
doRequest, reliablySend, sendprotected 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
IOExceptionpublic void setCollectors(Iterator<String> collectors)
ChukwaHttpSenderChunks tosetCollectors in interface ChukwaSendersetCollectors in class ChukwaHttpSenderpublic 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 listIOExceptionInterruptedExceptionprotected boolean failedCollector(String downed)
ChukwaHttpSenderfailedCollector in class ChukwaHttpSenderpublic void stop()
stop in interface ChukwaSenderstop in class ChukwaHttpSenderCopyright © ${year} The Apache Software Foundation