Package org.graylog2.inputs.transports
Class HttpPollTransport
java.lang.Object
org.graylog2.plugin.inputs.transports.ThrottleableTransport
org.graylog2.plugin.inputs.transports.ThrottleableTransport2
org.graylog2.inputs.transports.HttpPollTransport
- All Implemented Interfaces:
Transport
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
Fields inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
CK_THROTTLING_ALLOWED, eventBus, throttlingAllowed -
Constructor Summary
ConstructorsConstructorDescriptionHttpPollTransport(Configuration configuration, com.google.common.eventbus.EventBus serverEventBus, ServerStatus serverStatus, ScheduledExecutorService scheduler, okhttp3.OkHttpClient httpClient, EncryptedValueService encryptedValueService) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoLaunch(MessageInput input, InputFailureRecorder inputFailureRecorder) voiddoStop()Performs the same purpose asThrottleableTransport.stop()but guarantees that the superclass' actions are performed.com.codahale.metrics.MetricSetvoidlifecycleStateChange(Lifecycle lifecycle) voidsetMessageAggregator(CodecAggregator aggregator) Methods inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport2
doLaunch, launchMethods inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
blockUntilUnthrottled, blockUntilUnthrottled, determineIfThrottled, handleChangedThrottledState, isThrottled, launch, stop, updateThrottleState
-
Constructor Details
-
HttpPollTransport
public HttpPollTransport(Configuration configuration, com.google.common.eventbus.EventBus serverEventBus, ServerStatus serverStatus, @Named("daemonScheduler") ScheduledExecutorService scheduler, okhttp3.OkHttpClient httpClient, EncryptedValueService encryptedValueService)
-
-
Method Details
-
lifecycleStateChange
-
setMessageAggregator
-
doLaunch
public void doLaunch(MessageInput input, InputFailureRecorder inputFailureRecorder) throws MisfireException - Specified by:
doLaunchin classThrottleableTransport2- 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()
-