@Singleton public class Messages extends Object
| Constructor and Description |
|---|
Messages(com.codahale.metrics.MetricRegistry metricRegistry,
io.searchbox.client.JestClient client,
ProcessingStatusRecorder processingStatusRecorder,
boolean useExpectContinue) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
analyze(String toAnalyze,
String index,
String analyzer) |
List<String> |
bulkIndex(List<Map.Entry<IndexSet,Message>> messageList) |
List<String> |
bulkIndex(List<Map.Entry<IndexSet,Message>> messageList,
boolean isSystemTraffic) |
ResultMessage |
get(String messageId,
String index) |
LinkedBlockingQueue<List<IndexFailure>> |
getIndexFailureQueue() |
io.searchbox.core.Index |
prepareIndexRequest(String index,
Map<String,Object> source,
String id) |
@Inject
public Messages(com.codahale.metrics.MetricRegistry metricRegistry,
io.searchbox.client.JestClient client,
ProcessingStatusRecorder processingStatusRecorder,
@Named(value="elasticsearch_use_expect_continue")
boolean useExpectContinue)
public ResultMessage get(String messageId, String index) throws DocumentNotFoundException, IOException
DocumentNotFoundExceptionIOExceptionpublic List<String> analyze(String toAnalyze, String index, String analyzer) throws IOException
IOExceptionpublic List<String> bulkIndex(List<Map.Entry<IndexSet,Message>> messageList, boolean isSystemTraffic)
public io.searchbox.core.Index prepareIndexRequest(String index, Map<String,Object> source, String id)
public LinkedBlockingQueue<List<IndexFailure>> getIndexFailureQueue()
Copyright © 2012–2020 Graylog, Inc.. All rights reserved.