Class OpenSearchConnection

java.lang.Object
com.digitalpebble.stormcrawler.opensearch.OpenSearchConnection

public final class OpenSearchConnection extends Object
Utility class to instantiate an OpenSearch client and bulkprocessor based on the configuration.
  • Method Details

    • getClient

      public org.opensearch.client.RestHighLevelClient getClient()
    • addToProcessor

      public void addToProcessor(org.opensearch.action.DocWriteRequest<?> request)
    • getClient

      public static org.opensearch.client.RestHighLevelClient getClient(Map<String,Object> stormConf, String boltType)
    • getConnection

      public static OpenSearchConnection getConnection(Map<String,Object> stormConf, String boltType)
      Creates a connection with a default listener. The values for bolt type are [indexer,status,metrics]
    • getConnection

      public static OpenSearchConnection getConnection(Map<String,Object> stormConf, String boltType, org.opensearch.action.bulk.BulkProcessor.Listener listener)
    • close

      public void close()