Package org.graylog2.outputs
Class BlockingBatchedESOutput
java.lang.Object
org.graylog2.outputs.ElasticSearchOutput
org.graylog2.outputs.BlockingBatchedESOutput
- All Implemented Interfaces:
MessageOutput
,Stoppable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static interface
Nested classes/interfaces inherited from interface org.graylog2.plugin.outputs.MessageOutput
MessageOutput.Factory2<T>
-
Field Summary
Fields inherited from class org.graylog2.outputs.ElasticSearchOutput
acknowledger
-
Constructor Summary
ConstructorsConstructorDescriptionBlockingBatchedESOutput
(com.codahale.metrics.MetricRegistry metricRegistry, Messages messages, Configuration serverConfiguration, Journal journal, MessageQueueAcknowledger acknowledger, Cluster cluster, ScheduledExecutorService daemonScheduler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected IndexingResults
indexMessageBatch
(List<MessageWithIndex> messages) void
Initialize output, if not done in the constructor.void
stop()
void
void
Methods inherited from class org.graylog2.outputs.ElasticSearchOutput
isRunning, write, writeMessageEntries
-
Constructor Details
-
Method Details
-
write
- Specified by:
write
in interfaceMessageOutput
- Overrides:
write
in classElasticSearchOutput
- Throws:
Exception
-
writeMessageEntry
- Throws:
Exception
-
indexMessageBatch
- Throws:
Exception
-
forceFlushIfTimedout
public void forceFlushIfTimedout() -
stop
public void stop()- Specified by:
stop
in interfaceStoppable
- Overrides:
stop
in classElasticSearchOutput
-
initialize
Description copied from interface:MessageOutput
Initialize output, if not done in the constructor. Allows for graceful handling of initialization failures, e.g. because of an insufficient license. The output-launching code will call this method right after constructing the output instance.- Throws:
InsufficientLicenseException
- if the output could not be initialized due to an insufficient license.Exception
-