Class GeneratorTransport
java.lang.Object
org.graylog2.plugin.inputs.transports.ThrottleableTransport
org.graylog2.plugin.inputs.transports.GeneratorTransport
- All Implemented Interfaces:
Transport
- Direct Known Subclasses:
RandomMessageTransport
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog2.plugin.inputs.transports.Transport
Transport.Factory<T extends Transport>
-
Field Summary
Fields inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
CK_THROTTLING_ALLOWED, eventBus, throttlingAllowed
-
Constructor Summary
ConstructorDescriptionGeneratorTransport
(com.google.common.eventbus.EventBus eventBus, Configuration configuration) -
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
protected abstract RawMessage
produceRawMessage
(MessageInput input) void
setMessageAggregator
(CodecAggregator aggregator) Methods inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
blockUntilUnthrottled, blockUntilUnthrottled, determineIfThrottled, handleChangedThrottledState, isThrottled, launch, stop, updateThrottleState
-
Constructor Details
-
GeneratorTransport
public GeneratorTransport(com.google.common.eventbus.EventBus eventBus, Configuration configuration)
-
-
Method Details
-
setMessageAggregator
-
produceRawMessage
-
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
- Throws:
MisfireException
-
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()
-