Class UseOpensearchSDK2
java.lang.Object
gov.nasa.pds.registry.common.connection.UseOpensearchSDK2
- All Implemented Interfaces:
ConnectionFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic UseOpensearchSDK2build(CognitoType cog, AuthContent auth) static UseOpensearchSDK2build(DirectType url, AuthContent auth) static UseOpensearchSDK2build(Ec2Type url, AuthContent auth) clone()org.apache.http.client.CredentialsProviderorg.apache.hc.client5.http.auth.CredentialsProviderorg.apache.http.HttpHostgetHost()org.apache.hc.core5.http.HttpHostgetHost5()booleanvoidsetIndexName(String idxName)
-
Method Details
-
build
public static UseOpensearchSDK2 build(CognitoType cog, AuthContent auth) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
build
- Throws:
Exception
-
build
- Throws:
Exception
-
clone
- Specified by:
clonein interfaceConnectionFactory- Overrides:
clonein classObject
-
createRestClient
- Specified by:
createRestClientin interfaceConnectionFactory- Throws:
Exception
-
getCredentials
public org.apache.http.client.CredentialsProvider getCredentials()- Specified by:
getCredentialsin interfaceConnectionFactory
-
getCredentials5
public org.apache.hc.client5.http.auth.CredentialsProvider getCredentials5()- Specified by:
getCredentials5in interfaceConnectionFactory
-
getHost
public org.apache.http.HttpHost getHost()- Specified by:
getHostin interfaceConnectionFactory
-
getHost5
public org.apache.hc.core5.http.HttpHost getHost5()- Specified by:
getHost5in interfaceConnectionFactory
-
getHostName
- Specified by:
getHostNamein interfaceConnectionFactory
-
getIndexName
- Specified by:
getIndexNamein interfaceConnectionFactory
-
isTrustingSelfSigned
public boolean isTrustingSelfSigned()- Specified by:
isTrustingSelfSignedin interfaceConnectionFactory
-
setIndexName
- Specified by:
setIndexNamein interfaceConnectionFactory
-
reconnect
- Specified by:
reconnectin interfaceConnectionFactory- Throws:
IOExceptionInterruptedException
-