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
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
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, ScheduledExecutorService scheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doLaunch
(MessageInput input) Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)
but guarantees that the superclass' actions are performed.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.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:ThrottleableTransport
Performs the same purpose asThrottleableTransport.launch(org.graylog2.plugin.inputs.MessageInput)
but guarantees that the superclass' actions are performed.- Specified by:
doLaunch
in classThrottleableTransport
- 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()
-