| Package | Description |
|---|---|
| net.snowflake.client.core | |
| net.snowflake.client.jdbc | |
| net.snowflake.client.jdbc.cloud.storage |
| Modifier and Type | Field and Description |
|---|---|
static Map<HttpClientSettingsKey,org.apache.http.impl.client.CloseableHttpClient> |
HttpUtil.httpClient
The unique httpClient shared by all connections.
|
| Modifier and Type | Method and Description |
|---|---|
HttpClientSettingsKey |
SFBaseSession.getHttpClientKey() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.impl.client.CloseableHttpClient |
HttpUtil.buildHttpClient(HttpClientSettingsKey key,
File ocspCacheFile,
boolean downloadCompressed)
Build an Http client using our set of default.
|
static String |
HttpUtil.executeGeneralRequest(org.apache.http.client.methods.HttpRequestBase httpRequest,
int retryTimeout,
int authTimeout,
int socketTimeout,
int retryCount,
HttpClientSettingsKey ocspAndProxyKey)
Executes a HTTP request for Snowflake.
|
static String |
HttpUtil.executeRequest(org.apache.http.client.methods.HttpRequestBase httpRequest,
int retryTimeout,
int authTimeout,
int socketTimeout,
int retryCount,
int injectSocketTimeout,
AtomicBoolean canceling,
boolean includeRetryParameters,
boolean retryOnHTTP403,
HttpClientSettingsKey ocspAndProxyKey)
Executes a HTTP request for Snowflake.
|
static Throwable |
IncidentUtil.generateIncidentV2WithException(String serverUrl,
String sessionToken,
HttpClientSettingsKey key,
Throwable exc,
String jobId,
String requestId)
Makes a V2 incident object and triggers it, effectively reporting the given exception to GS and
possibly to crashmanager.
|
static org.apache.http.impl.client.CloseableHttpClient |
HttpUtil.getHttpClient(HttpClientSettingsKey ocspAndProxyKey)
Gets HttpClient with insecureMode false
|
static org.apache.http.impl.client.CloseableHttpClient |
HttpUtil.getHttpClientWithoutDecompression(HttpClientSettingsKey ocspAndProxyKey)
Gets HttpClient with insecureMode false and disabling decompression
|
static org.apache.http.impl.client.CloseableHttpClient |
HttpUtil.initHttpClient(HttpClientSettingsKey key,
File ocspCacheFile)
Accessor for the HTTP client singleton.
|
static org.apache.http.impl.client.CloseableHttpClient |
HttpUtil.initHttpClientWithoutDecompression(HttpClientSettingsKey key,
File ocspCacheFile)
Accessor for the HTTP client singleton.
|
static void |
HttpUtil.setProxyForAzure(HttpClientSettingsKey key,
com.microsoft.azure.storage.OperationContext opContext)
A static function to set Azure proxy params when there is a valid session
|
static void |
HttpUtil.setProxyForS3(HttpClientSettingsKey key,
com.amazonaws.ClientConfiguration clientConfig)
A static function to set S3 proxy params when there is a valid session
|
static void |
HttpUtil.updateRoutePlanner(HttpClientSettingsKey key) |
| Constructor and Description |
|---|
Incident(String serverUrl,
String sessionToken,
HttpClientSettingsKey key,
Throwable exc,
String jobId,
String requestId)
Submit an exception to GS from a Throwable, this is the only constructor that should be used to
report incidents
|
| Modifier and Type | Method and Description |
|---|---|
static HttpClientSettingsKey |
SnowflakeUtil.convertProxyPropertiesToHttpClientKey(OCSPMode mode,
Properties info)
Setup JDBC proxy properties if necessary.
|
HttpClientSettingsKey |
SnowflakeResultSetSerializableV1.getHttpClientKey() |
HttpClientSettingsKey |
SnowflakeChunkDownloader.getHttpClientSettingsKey() |
| Modifier and Type | Method and Description |
|---|---|
default void |
SnowflakeStorageClient.uploadWithPresignedUrlWithoutConnection(int networkTimeoutInMilli,
HttpClientSettingsKey ocspModeAndProxyKey,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file (-stream) to remote storage with Pre-signed URL without JDBC connection.
|
void |
SnowflakeGCSClient.uploadWithPresignedUrlWithoutConnection(int networkTimeoutInMilli,
HttpClientSettingsKey ocspModeAndProxyKey,
int parallelism,
boolean uploadFromStream,
String remoteStorageLocation,
File srcFile,
String destFileName,
InputStream inputStream,
FileBackedOutputStream fileBackedOutputStream,
StorageObjectMetadata meta,
String stageRegion,
String presignedUrl)
Upload a file (-stream) to remote storage with Pre-signed URL without JDBC session.
|
Copyright © 2022. All rights reserved.