Package org.graylog2.inputs.transports
Class AmqpTransport
java.lang.Object
org.graylog2.plugin.inputs.transports.ThrottleableTransport
org.graylog2.plugin.inputs.transports.ThrottleableTransport2
org.graylog2.inputs.transports.AmqpTransport
- 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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
CK_THROTTLING_ALLOWED, throttlingAllowed -
Constructor Summary
ConstructorsConstructorDescriptionAmqpTransport(Configuration configuration, com.google.common.eventbus.EventBus eventBus, LocalMetricRegistry localRegistry, EncryptedValueService encryptedValueService, ScheduledExecutorService scheduler, ScheduledExecutorService amqpScheduler) -
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.MetricSetvoidlifecycleChanged(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
-
Field Details
-
CK_HOSTNAME
- See Also:
-
CK_PORT
- See Also:
-
CK_VHOST
- See Also:
-
CK_USERNAME
- See Also:
-
CK_PASSWORD
- See Also:
-
CK_PREFETCH
- See Also:
-
CK_EXCHANGE
- See Also:
-
CK_EXCHANGE_BIND
- See Also:
-
CK_QUEUE
- See Also:
-
CK_ROUTING_KEY
- See Also:
-
CK_PARALLEL_QUEUES
- See Also:
-
CK_TLS
- See Also:
-
CK_REQUEUE_INVALID_MESSAGES
- See Also:
-
CK_HEARTBEAT_TIMEOUT
- See Also:
-
CK_CONNECTION_RECOVERY_INTERVAL
- See Also:
-
-
Constructor Details
-
AmqpTransport
public AmqpTransport(Configuration configuration, com.google.common.eventbus.EventBus eventBus, LocalMetricRegistry localRegistry, EncryptedValueService encryptedValueService, @Named("daemonScheduler") ScheduledExecutorService scheduler, @Named("AMQP Executor") ScheduledExecutorService amqpScheduler)
-
-
Method Details
-
lifecycleChanged
-
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()
-