public class HopsworksClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_PATH |
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) |
HopsworksHttpClient |
getHopsworksHttpClient() |
String |
getHost() |
static HopsworksClient |
getInstance() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Project |
getProject() |
<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) |
void |
setProject(Project project) |
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
public HopsworksClient(HopsworksHttpClient hopsworksHttpClient, String host)
public static HopsworksClient getInstance() throws FeatureStoreException
FeatureStoreExceptionpublic 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
FeatureStoreExceptionpublic <T> T handleRequest(org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<T> responseHandler)
throws IOException,
FeatureStoreException
IOExceptionFeatureStoreExceptionpublic <T> T handleRequest(org.apache.http.HttpRequest request,
Class<T> cls)
throws IOException,
FeatureStoreException
IOExceptionFeatureStoreExceptionpublic <T> T handleRequest(org.apache.http.HttpRequest request)
throws IOException,
FeatureStoreException
IOExceptionFeatureStoreExceptionpublic org.apache.http.entity.StringEntity buildStringEntity(Object object) throws IOException
IOExceptionpublic Project getProject()
public void setProject(Project project)
public String getHost()
public HopsworksHttpClient getHopsworksHttpClient()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2023. All rights reserved.