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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
CK_THROTTLING_ALLOWED, eventBus, throttlingAllowed -
Constructor Summary
ConstructorsConstructorDescriptionKafkaTransport(Configuration configuration, LocalMetricRegistry localRegistry, NodeId nodeId, com.google.common.eventbus.EventBus serverEventBus, ServerStatus serverStatus, ScheduledExecutorService scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoLaunch(MessageInput input) Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)but guarantees that the superclass' actions are performed.voiddoStop()Performs the same purpose asThrottleableTransport.stop()but guarantees that the superclass' actions are performed.com.codahale.metrics.MetricSetvoidlifecycleStateChange(Lifecycle lifecycle) voidsetMessageAggregator(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:ThrottleableTransportPerforms the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)but guarantees that the superclass' actions are performed.- Specified by:
doLaunchin classThrottleableTransport
-
doStop
public void doStop()Description copied from class:ThrottleableTransportPerforms the same purpose asThrottleableTransport.stop()but guarantees that the superclass' actions are performed.- Specified by:
doStopin classThrottleableTransport
-
getMetricSet
public com.codahale.metrics.MetricSet getMetricSet()
-