public class HopsworksClient extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
HopsworksClient.BaseHandler<T> |
protected static class |
HopsworksClient.HopsworksErrorClass |
Modifier and Type | Field and Description |
---|---|
static String |
API_PATH |
protected static HopsworksClient |
hopsworksClientInstance |
protected HopsworksHttpClient |
hopsworksHttpClient |
protected String |
host |
protected static org.slf4j.Logger |
LOGGER |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected Project |
project |
static String |
PROJECT_PATH |
Constructor and Description |
---|
HopsworksClient(HopsworksHttpClient hopsworksHttpClient,
String host) |
Modifier and Type | Method and Description |
---|---|
org.apache.http.entity.StringEntity |
buildStringEntity(Object object) |
Credentials |
getCredentials(Project project) |
static HopsworksClient |
getInstance() |
<T> T |
handleRequest(org.apache.http.HttpRequest request) |
<T> T |
handleRequest(org.apache.http.HttpRequest request,
Class<T> cls) |
<T> T |
handleRequest(org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<T> responseHandler) |
static void |
setInstance(HopsworksClient instance) |
static HopsworksClient |
setupHopsworksClient(String host,
int port,
software.amazon.awssdk.regions.Region region,
SecretStore secretStore,
boolean hostnameVerification,
String trustStorePath,
String apiKeyFilePath,
String apiKeyValue) |
public static final String API_PATH
public static final String PROJECT_PATH
protected static HopsworksClient hopsworksClientInstance
protected static final org.slf4j.Logger LOGGER
protected Project project
protected String host
protected HopsworksHttpClient hopsworksHttpClient
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public HopsworksClient(HopsworksHttpClient hopsworksHttpClient, String host)
public static HopsworksClient getInstance() throws FeatureStoreException
FeatureStoreException
public static void setInstance(HopsworksClient instance)
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
FeatureStoreException
public Credentials getCredentials(Project project) throws FeatureStoreException, IOException, KeyStoreException, CertificateException, NoSuchAlgorithmException
public <T> T handleRequest(org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<T> responseHandler) throws IOException, FeatureStoreException
IOException
FeatureStoreException
public <T> T handleRequest(org.apache.http.HttpRequest request, Class<T> cls) throws IOException, FeatureStoreException
IOException
FeatureStoreException
public <T> T handleRequest(org.apache.http.HttpRequest request) throws IOException, FeatureStoreException
IOException
FeatureStoreException
public org.apache.http.entity.StringEntity buildStringEntity(Object object) throws IOException
IOException
Copyright © 2023. All rights reserved.