Package com.logicalclocks.hsfs.metadata
Class HopsworksClient
java.lang.Object
com.logicalclocks.hsfs.metadata.HopsworksClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static HopsworksClientprotected HopsworksHttpClientprotected Stringprotected static final org.slf4j.Loggerprotected com.fasterxml.jackson.databind.ObjectMapperprotected Projectstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.entity.StringEntitybuildStringEntity(Object object) static HopsworksClient<T> ThandleRequest(org.apache.http.HttpRequest request) <T> ThandleRequest(org.apache.http.HttpRequest request, Class<T> cls) <T> ThandleRequest(org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<T> responseHandler) static voidsetInstance(HopsworksClient instance) static HopsworksClientsetupHopsworksClient(String host, int port, software.amazon.awssdk.regions.Region region, SecretStore secretStore, boolean hostnameVerification, String trustStorePath, String apiKeyFilePath, String apiKeyValue)
-
Field Details
-
API_PATH
- See Also:
-
PROJECT_PATH
- See Also:
-
hopsworksClientInstance
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
project
-
host
-
hopsworksHttpClient
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
HopsworksClient
-
-
Method Details
-
getInstance
- Throws:
FeatureStoreException
-
setInstance
-
setupHopsworksClient
public static HopsworksClient setupHopsworksClient(String host, int port, software.amazon.awssdk.regions.Region region, SecretStore secretStore, boolean hostnameVerification, String trustStorePath, String apiKeyFilePath, String apiKeyValue) throws FeatureStoreException - Throws:
FeatureStoreException
-
getCredentials
public Credentials getCredentials() throws FeatureStoreException, IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException -
handleRequest
public <T> T handleRequest(org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<T> responseHandler) throws IOException, FeatureStoreException - Throws:
IOExceptionFeatureStoreException
-
handleRequest
public <T> T handleRequest(org.apache.http.HttpRequest request, Class<T> cls) throws IOException, FeatureStoreException - Throws:
IOExceptionFeatureStoreException
-
handleRequest
public <T> T handleRequest(org.apache.http.HttpRequest request) throws IOException, FeatureStoreException - Throws:
IOExceptionFeatureStoreException
-
buildStringEntity
- Throws:
IOException
-