public class ChukwaHttpSender extends Object implements ChukwaSender
On error, tries the list of available collectors, pauses for a minute, and then repeats.
Will wait forever for collectors to come up.
Modifier and Type | Class and Description |
---|---|
static class |
ChukwaHttpSender.CommitListEntry |
Modifier and Type | Field and Description |
---|---|
protected Iterator<String> |
collectors |
Constructor and Description |
---|
ChukwaHttpSender(org.apache.hadoop.conf.Configuration c) |
Modifier and Type | Method and Description |
---|---|
List<ChukwaHttpSender.CommitListEntry> |
send(List<Chunk> toSend)
grab all of the chunks currently in the chunkQueue, stores a copy of them
locally, calculates their size, sets them up
|
void |
setCollectors(Iterator<String> collectors)
Set up a list of connectors for this client to send
Chunk s to |
void |
setCollectors(String collector)
Set up a single connector for this client to send
Chunk s to |
public void setCollectors(String collector)
Chunk
s tocollector
- the url of the collectorpublic void setCollectors(Iterator<String> collectors)
Chunk
s tosetCollectors
in interface ChukwaSender
collectors
- public List<ChukwaHttpSender.CommitListEntry> send(List<Chunk> toSend) throws InterruptedException, IOException
send
in interface ChukwaSender
toSend
- a list of chunks to commitInterruptedException
- if interrupted while trying to sendIOException
Copyright © ${year} The Apache Software Foundation