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
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport
CK_THROTTLING_ALLOWED, throttlingAllowed
-
Constructor Summary
ConstructorDescriptionAmqpTransport
(Configuration configuration, com.google.common.eventbus.EventBus eventBus, LocalMetricRegistry localRegistry, EncryptedValueService encryptedValueService, ScheduledExecutorService scheduler, ScheduledExecutorService amqpScheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doLaunch
(MessageInput input, InputFailureRecorder inputFailureRecorder) void
doStop()
Performs the same purpose asThrottleableTransport.stop()
but guarantees that the superclass' actions are performed.com.codahale.metrics.MetricSet
void
lifecycleChanged
(Lifecycle lifecycle) void
setMessageAggregator
(CodecAggregator aggregator) Methods inherited from class org.graylog2.plugin.inputs.transports.ThrottleableTransport2
doLaunch, launch
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:
-
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:
doLaunch
in classThrottleableTransport2
- 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()
-