public class HopsworksConnection extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
HopsworksConnection.HopsworksConnectionBuilder |
| Constructor and Description |
|---|
HopsworksConnection(String host,
int port,
String project,
software.amazon.awssdk.regions.Region region,
SecretStore secretStore,
boolean hostnameVerification,
String trustStorePath,
String certPath,
String apiKeyFilePath,
String apiKeyValue) |
| Modifier and Type | Method and Description |
|---|---|
static HopsworksConnection.HopsworksConnectionBuilder |
builder() |
void |
close()
Close the connection and clean up the certificates.
|
String |
getApiKeyFilePath() |
String |
getApiKeyValue() |
String |
getCertPath() |
FeatureStore |
getFeatureStore()
Retrieve the project feature store.
|
FeatureStore |
getFeatureStore(String name)
Retrieve a feature store based on name.
|
String |
getHost() |
int |
getPort() |
software.amazon.awssdk.regions.Region |
getRegion() |
SecretStore |
getSecretStore() |
String |
getTrustStorePath() |
boolean |
isHostnameVerification() |
public HopsworksConnection(String host, int port, String project, software.amazon.awssdk.regions.Region region, SecretStore secretStore, boolean hostnameVerification, String trustStorePath, String certPath, String apiKeyFilePath, String apiKeyValue) throws IOException, FeatureStoreException
IOExceptionFeatureStoreExceptionpublic FeatureStore getFeatureStore() throws IOException, FeatureStoreException
IOException - IOExceptionFeatureStoreException - FeatureStoreExceptionpublic FeatureStore getFeatureStore(String name) throws IOException, FeatureStoreException
name - the name of the feature store to get the handle forIOException - IOExceptionFeatureStoreException - FeatureStoreExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic static HopsworksConnection.HopsworksConnectionBuilder builder()
public String getHost()
public int getPort()
public software.amazon.awssdk.regions.Region getRegion()
public SecretStore getSecretStore()
public boolean isHostnameVerification()
public String getTrustStorePath()
public String getCertPath()
public String getApiKeyFilePath()
public String getApiKeyValue()
Copyright © 2023. All rights reserved.