Package org.graylog2.inputs.transports
Class KafkaTransport
java.lang.Object
org.graylog2.plugin.inputs.transports.ThrottleableTransport
org.graylog2.inputs.transports.KafkaTransport
- All Implemented Interfaces:
Transport
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
CK_THROTTLING_ALLOWED, eventBus, throttlingAllowed
-
Constructor Summary
ConstructorDescriptionKafkaTransport
(Configuration configuration, LocalMetricRegistry localRegistry, NodeId nodeId, com.google.common.eventbus.EventBus serverEventBus, ServerStatus serverStatus, ScheduledExecutorService scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doLaunch
(MessageInput input) Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)
but guarantees that the superclass' actions are performed.void
doStop()
Performs the same purpose asThrottleableTransport.stop()
but guarantees that the superclass' actions are performed.com.codahale.metrics.MetricSet
void
lifecycleStateChange
(Lifecycle lifecycle) void
setMessageAggregator
(CodecAggregator ignored) Methods inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
blockUntilUnthrottled, blockUntilUnthrottled, determineIfThrottled, handleChangedThrottledState, isThrottled, launch, stop, updateThrottleState
-
Field Details
-
CK_LEGACY
- See Also:
-
CK_FETCH_MIN_BYTES
- See Also:
-
CK_FETCH_WAIT_MAX
- See Also:
-
CK_ZOOKEEPER
- See Also:
-
CK_BOOTSTRAP
- See Also:
-
CK_TOPIC_FILTER
- See Also:
-
CK_THREADS
- See Also:
-
CK_OFFSET_RESET
- See Also:
-
CK_GROUP_ID
- See Also:
-
CK_CUSTOM_PROPERTIES
- See Also:
-
-
Constructor Details
-
KafkaTransport
public KafkaTransport(Configuration configuration, LocalMetricRegistry localRegistry, NodeId nodeId, com.google.common.eventbus.EventBus serverEventBus, ServerStatus serverStatus, @Named("daemonScheduler") ScheduledExecutorService scheduler)
-
-
Method Details
-
lifecycleStateChange
-
setMessageAggregator
-
doLaunch
Description copied from class:ThrottleableTransport
Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)
but guarantees that the superclass' actions are performed.- Specified by:
doLaunch
in classThrottleableTransport
-
doStop
public void doStop()Description copied from class:ThrottleableTransport
Performs the same purpose asThrottleableTransport.stop()
but guarantees that the superclass' actions are performed.- Specified by:
doStop
in classThrottleableTransport
-
getMetricSet
public com.codahale.metrics.MetricSet getMetricSet()
-