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_BOOTSTRAP |
static String |
CK_CUSTOM_PROPERTIES |
static String |
CK_FETCH_MIN_BYTES |
static String |
CK_FETCH_WAIT_MAX |
static String |
CK_GROUP_ID |
static String |
CK_LEGACY |
static String |
CK_OFFSET_RESET |
static String |
CK_THREADS |
static String |
CK_TOPIC_FILTER |
static String |
CK_ZOOKEEPER |
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, blockUntilUnthrottled, determineIfThrottled, handleChangedThrottledState, isThrottled, launch, stop, updateThrottleState
public static final String CK_LEGACY
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_BOOTSTRAP
public static final String CK_TOPIC_FILTER
public static final String CK_THREADS
public static final String CK_OFFSET_RESET
public static final String CK_GROUP_ID
public static final String CK_CUSTOM_PROPERTIES
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)
ThrottleableTransport
ThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)
but guarantees that the superclass'
actions are performed.doLaunch
in class ThrottleableTransport
public void doStop()
ThrottleableTransport
ThrottleableTransport.stop()
but guarantees that the superclass' actions are performed.doStop
in class ThrottleableTransport
public com.codahale.metrics.MetricSet getMetricSet()
Copyright © 2012–2020 Graylog, Inc.. All rights reserved.