public class KafkaTransport extends ThrottleableTransport
| Modifier and Type | Class and Description |
|---|---|
static class |
KafkaTransport.Config |
static interface |
KafkaTransport.Factory |
| Modifier and Type | Field and Description |
|---|---|
static String |
CK_FETCH_MIN_BYTES |
static String |
CK_FETCH_WAIT_MAX |
static String |
CK_THREADS |
static String |
CK_TOPIC_FILTER |
static String |
CK_ZOOKEEPER |
static String |
GROUP_ID |
CK_THROTTLING_ALLOWED| Constructor and Description |
|---|
KafkaTransport(Configuration configuration,
LocalMetricRegistry localRegistry,
NodeId nodeId,
com.google.common.eventbus.EventBus serverEventBus,
ServerStatus serverStatus,
ScheduledExecutorService scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
doLaunch(MessageInput input)
Performs the same purpose as
ThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput) but guarantees that the superclass'
actions are performed. |
void |
doStop()
Performs the same purpose as
ThrottleableTransport.stop() but guarantees that the superclass' actions are performed. |
com.codahale.metrics.MetricSet |
getMetricSet() |
void |
lifecycleStateChange(Lifecycle lifecycle) |
void |
setMessageAggregator(CodecAggregator ignored) |
blockUntilUnthrottled, determineIfThrottled, isThrottled, launch, stop, updateThrottleStatepublic static final String GROUP_ID
public static final String CK_FETCH_MIN_BYTES
public static final String CK_FETCH_WAIT_MAX
public static final String CK_ZOOKEEPER
public static final String CK_TOPIC_FILTER
public static final String CK_THREADS
public KafkaTransport(Configuration configuration, LocalMetricRegistry localRegistry, NodeId nodeId, com.google.common.eventbus.EventBus serverEventBus, ServerStatus serverStatus, @Named(value="daemonScheduler") ScheduledExecutorService scheduler)
public void lifecycleStateChange(Lifecycle lifecycle)
public void setMessageAggregator(CodecAggregator ignored)
public void doLaunch(MessageInput input) throws MisfireException
ThrottleableTransportThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput) but guarantees that the superclass'
actions are performed.doLaunch in class ThrottleableTransportMisfireExceptionpublic void doStop()
ThrottleableTransportThrottleableTransport.stop() but guarantees that the superclass' actions are performed.doStop in class ThrottleableTransportpublic com.codahale.metrics.MetricSet getMetricSet()
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.