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 ClassesNested 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
ConstructorsConstructorDescriptionGeneratorTransport(com.google.common.eventbus.EventBus eventBus, Configuration configuration) -
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.MetricSetprotected abstract RawMessageproduceRawMessage(MessageInput input) voidsetMessageAggregator(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:ThrottleableTransportPerforms the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)but guarantees that the superclass' actions are performed.- Specified by:
doLaunchin classThrottleableTransport- Throws:
MisfireException
-
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()
-