Class IndexStateManagementClient
java.lang.Object
org.qubership.integration.platform.engine.opensearch.ism.IndexStateManagementClient
-
Constructor Summary
ConstructorsConstructorDescriptionIndexStateManagementClient(org.opensearch.client.opensearch.OpenSearchClient client, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptioncreatePolicy(Policy policy) removePolicy(String indexName) tryGetPolicy(String policyId) updatePolicy(Policy policy, long seqNo, long primaryTerm)
-
Constructor Details
-
IndexStateManagementClient
public IndexStateManagementClient(org.opensearch.client.opensearch.OpenSearchClient client, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
-
-
Method Details
-
getPolicy
- Throws:
IOException
-
tryGetPolicy
- Throws:
IOException
-
createPolicy
- Throws:
IOException
-
updatePolicy
- Throws:
IOException
-
addPolicy
- Throws:
IOException
-
removePolicy
- Throws:
IOException
-