Package org.graylog2.inputs.transports
Class AmqpTransport
java.lang.Object
org.graylog2.plugin.inputs.transports.ThrottleableTransport
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 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, 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.MetricSetvoidlifecycleChanged(Lifecycle lifecycle) voidsetMessageAggregator(CodecAggregator aggregator) Methods 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:
-
-
Constructor Details
-
AmqpTransport
public AmqpTransport(Configuration configuration, com.google.common.eventbus.EventBus eventBus, LocalMetricRegistry localRegistry, @Named("daemonScheduler") ScheduledExecutorService scheduler)
-
-
Method Details
-
lifecycleChanged
-
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- 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()
-