Class RestClientWrapper
java.lang.Object
gov.nasa.pds.registry.common.connection.aws.RestClientWrapper
- All Implemented Interfaces:
RestClient,Closeable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong_performRequest(org.opensearch.client.opensearch.core.DeleteRequest request) voidclose()voidbooleanperformRequest(Request.Bulk request) longperformRequest(Request.Count request) longperformRequest(Request.Delete request) longperformRequest(Request.DeleteByQuery request) performRequest(Request.Get request) performRequest(Request.Mapping request) performRequest(Request.Search request) performRequest(Request.Setting request)
-
Constructor Details
-
RestClientWrapper
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
create
public Response.CreatedIndex create(String indexName, String configAsJson) throws IOException, ResponseException - Specified by:
createin interfaceRestClient- Throws:
IOExceptionResponseException
-
createBulkRequest
- Specified by:
createBulkRequestin interfaceRestClient
-
createCountRequest
- Specified by:
createCountRequestin interfaceRestClient
-
createDelete
- Specified by:
createDeletein interfaceRestClient
-
createDeleteByQuery
- Specified by:
createDeleteByQueryin interfaceRestClient
-
createGetRequest
- Specified by:
createGetRequestin interfaceRestClient
-
createMappingRequest
- Specified by:
createMappingRequestin interfaceRestClient
-
createMGetRequest
- Specified by:
createMGetRequestin interfaceRestClient
-
createSearchRequest
- Specified by:
createSearchRequestin interfaceRestClient
-
createSettingRequest
- Specified by:
createSettingRequestin interfaceRestClient
-
delete
- Specified by:
deletein interfaceRestClient- Throws:
IOExceptionResponseException
-
exists
- Specified by:
existsin interfaceRestClient- Throws:
IOExceptionResponseException
-
performRequest
- Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-
performRequest
- Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-
performRequest
- Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-
_performRequest
public long _performRequest(org.opensearch.client.opensearch.core.DeleteRequest request) throws IOException, ResponseException - Throws:
IOExceptionResponseException
-
performRequest
- Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-
performRequest
- Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-
performRequest
public Response.Mapping performRequest(Request.Mapping request) throws IOException, ResponseException - Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-
performRequest
- Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-
performRequest
public Response.Settings performRequest(Request.Setting request) throws IOException, ResponseException - Specified by:
performRequestin interfaceRestClient- Throws:
IOExceptionResponseException
-