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
Chunks to |
void |
setCollectors(String collector)
Set up a single connector for this client to send
Chunks to |
public void setCollectors(String collector)
Chunks tocollector - the url of the collectorpublic void setCollectors(Iterator<String> collectors)
Chunks tosetCollectors in interface ChukwaSendercollectors - public List<ChukwaHttpSender.CommitListEntry> send(List<Chunk> toSend) throws InterruptedException, IOException
send in interface ChukwaSendertoSend - a list of chunks to commitInterruptedException - if interrupted while trying to sendIOExceptionCopyright © ${year} The Apache Software Foundation