Class RemoteClusterIndicesClient

java.lang.Object
org.opensearch.remote.metadata.client.AbstractSdkClient
org.opensearch.remote.metadata.client.impl.RemoteClusterIndicesClient
All Implemented Interfaces:
AutoCloseable, org.opensearch.remote.metadata.client.SdkClientDelegate

public class RemoteClusterIndicesClient extends org.opensearch.remote.metadata.client.AbstractSdkClient
An implementation of SdkClient that stores data in a remote OpenSearch cluster using the OpenSearch Java Client.
  • Field Details

    • MAP_DOCTYPE

      protected static final Class<Map<String,Object>> MAP_DOCTYPE
    • openSearchAsyncClient

      protected org.opensearch.client.opensearch.OpenSearchAsyncClient openSearchAsyncClient
    • mapper

      protected org.opensearch.client.json.JsonpMapper mapper
  • Constructor Details

    • RemoteClusterIndicesClient

      public RemoteClusterIndicesClient()
      Empty constructor for SPI
  • Method Details

    • supportsMetadataType

      public boolean supportsMetadataType(String metadataType)
    • initialize

      public void initialize(Map<String,String> metadataSettings)
      Specified by:
      initialize in interface org.opensearch.remote.metadata.client.SdkClientDelegate
      Overrides:
      initialize in class org.opensearch.remote.metadata.client.AbstractSdkClient
    • putDataObjectAsync

      public CompletionStage<org.opensearch.remote.metadata.client.PutDataObjectResponse> putDataObjectAsync(org.opensearch.remote.metadata.client.PutDataObjectRequest request, Executor executor, Boolean isMultiTenancyEnabled)
    • getDataObjectAsync

      public CompletionStage<org.opensearch.remote.metadata.client.GetDataObjectResponse> getDataObjectAsync(org.opensearch.remote.metadata.client.GetDataObjectRequest request, Executor executor, Boolean isMultiTenancyEnabled)
    • updateDataObjectAsync

      public CompletionStage<org.opensearch.remote.metadata.client.UpdateDataObjectResponse> updateDataObjectAsync(org.opensearch.remote.metadata.client.UpdateDataObjectRequest request, Executor executor, Boolean isMultiTenancyEnabled)
    • deleteDataObjectAsync

      public CompletionStage<org.opensearch.remote.metadata.client.DeleteDataObjectResponse> deleteDataObjectAsync(org.opensearch.remote.metadata.client.DeleteDataObjectRequest request, Executor executor, Boolean isMultiTenancyEnabled)
    • bulkDataObjectAsync

      public CompletionStage<org.opensearch.remote.metadata.client.BulkDataObjectResponse> bulkDataObjectAsync(org.opensearch.remote.metadata.client.BulkDataObjectRequest request, Executor executor, Boolean isMultiTenancyEnabled)
    • searchDataObjectAsync

      public CompletionStage<org.opensearch.remote.metadata.client.SearchDataObjectResponse> searchDataObjectAsync(org.opensearch.remote.metadata.client.SearchDataObjectRequest request, Executor executor, Boolean isMultiTenancyEnabled)
    • createOpenSearchAsyncClient

      protected org.opensearch.client.opensearch.OpenSearchAsyncClient createOpenSearchAsyncClient()
      Create an instance of OpenSearchAsyncClient
      Returns:
      An OpenSearchAsyncClient instance
    • close

      public void close() throws Exception
      Throws:
      Exception