public class GelfChunkAggregator extends Object implements CodecAggregator
CodecAggregator.Result| Modifier and Type | Field and Description |
|---|---|
static String |
CHUNK_COUNTER |
static String |
COMPLETE_MESSAGES |
static String |
DUPLICATE_CHUNKS |
static String |
EXPIRED_CHUNKS |
static String |
EXPIRED_MESSAGES |
static CodecAggregator.Result |
INVALID_RESULT |
static CodecAggregator.Result |
VALID_EMPTY_RESULT |
static int |
VALIDITY_PERIOD |
static String |
WAITING_MESSAGES |
| Constructor and Description |
|---|
GelfChunkAggregator(ScheduledExecutorService scheduler,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
CodecAggregator.Result |
addChunk(org.jboss.netty.buffer.ChannelBuffer buffer) |
public static final CodecAggregator.Result VALID_EMPTY_RESULT
public static final CodecAggregator.Result INVALID_RESULT
public static final int VALIDITY_PERIOD
public static final String CHUNK_COUNTER
public static final String WAITING_MESSAGES
public static final String COMPLETE_MESSAGES
public static final String EXPIRED_MESSAGES
public static final String EXPIRED_CHUNKS
public static final String DUPLICATE_CHUNKS
@Inject
public GelfChunkAggregator(@Named(value="daemonScheduler")
ScheduledExecutorService scheduler,
com.codahale.metrics.MetricRegistry metricRegistry)
@Nonnull public CodecAggregator.Result addChunk(org.jboss.netty.buffer.ChannelBuffer buffer)
addChunk in interface CodecAggregatorCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.