public class AdbGraphClientConfiguration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
Modifier and Type | Field and Description |
---|---|
static java.util.concurrent.TimeUnit |
DEFAULT_REFRESH_TIME_BEFORE_TOKEN_EXPIRY_TIME_UNIT
Default value for
refreshTimeBeforeTokenExpiryTimeUnit |
Modifier and Type | Method and Description |
---|---|
static AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
builder() |
java.net.URI |
createBrokerBaseURI() |
java.net.URI |
createGraphStudioBaseURI() |
java.net.URI |
createPgxBaseURI() |
java.lang.String |
getBrokerBaseUrl()
Set the broker base URL to use.
|
java.lang.String |
getDatabase()
The Autonomous Database name.
|
java.lang.String |
getDataStudioApiVersion()
The API version of the Data Studio REST endpoints to use.
|
java.lang.String |
getEndpoint()
ADB Graph endpoint URL.
|
java.util.concurrent.ExecutorService |
getExecutorService()
The
ExecutorService this client should use for background polling threads. |
java.lang.String |
getGraphStudioApiVersion()
The API version of the Graph Studio REST endpoints to use.
|
java.lang.String |
getGraphStudioBaseUrl()
Set the Graph Studio base URL to use.
|
org.apache.http.client.HttpClient |
getHttpClient()
The Apache
HttpClient object to use for HTTP requests. |
long |
getJobPollInterval()
The time interval to use when polling the server for job updates.
|
java.util.concurrent.TimeUnit |
getJobPollIntervalTimeUnit()
The time unit for the
jobPollInterval time value. |
java.lang.String |
getPassword()
The Database password to use for login.
|
java.lang.String |
getPgxBaseUrl()
Set the PGX base URL to use.
|
int |
getRefreshTimeBeforeTokenExpiry()
The time to refresh the authentication token automatically before it expires.
|
java.util.concurrent.TimeUnit |
getRefreshTimeBeforeTokenExpiryTimeUnit()
The time unit of the
refreshTimeBeforeTokenExpiry time value. |
java.lang.String |
getTenant()
OCI tenant name (*not* the tenant OCID).
|
java.lang.String |
getUsername()
The Database username to use for login.
|
public static final java.util.concurrent.TimeUnit DEFAULT_REFRESH_TIME_BEFORE_TOKEN_EXPIRY_TIME_UNIT
refreshTimeBeforeTokenExpiryTimeUnit
public static AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder builder()
public java.net.URI createBrokerBaseURI()
public java.net.URI createGraphStudioBaseURI()
public java.net.URI createPgxBaseURI()
public java.lang.String getBrokerBaseUrl()
getEndpoint()
. URL is expected to end with '/broker/pdbcs'public java.lang.String getDatabase()
public java.lang.String getDataStudioApiVersion()
public java.lang.String getEndpoint()
public java.util.concurrent.ExecutorService getExecutorService()
ExecutorService
this client should use for background polling threads. Optional configuration. If not set, then Executors.newFixedThreadPool(int)
will be used with the number of threads equaling Runtime.availableProcessors()
.ExecutorService
of this configuration.public java.lang.String getGraphStudioApiVersion()
public java.lang.String getGraphStudioBaseUrl()
getEndpoint()
. URL is expected to end with '/graphstudio'public org.apache.http.client.HttpClient getHttpClient()
HttpClient
object to use for HTTP requests. Optional configuration. If not set, then HttpClients.createDefault()
will be used.public long getJobPollInterval()
jobPollIntervalTimeUnit
configuration. Optional configuration. If not set, then {@link #DEFAULT_JOB_POLL_INTERVAL) will be used.public java.util.concurrent.TimeUnit getJobPollIntervalTimeUnit()
jobPollInterval
time value. Optional configuration. If not set, then {@link #DEFAULT_JOB_POLL_INTERVAL_TIME_UNIT) will be used.public java.lang.String getPassword()
public java.lang.String getPgxBaseUrl()
getEndpoint()
. URL is expected to end with '/graph/pgx'public int getRefreshTimeBeforeTokenExpiry()
refreshTimeBeforeTokenExpiryTimeUnit
configuration. Optional configuration. If not set, then GraphServer.DEFAULT_TIME_BEFORE_EXPIRY
will be used.public java.util.concurrent.TimeUnit getRefreshTimeBeforeTokenExpiryTimeUnit()
refreshTimeBeforeTokenExpiry
time value. Optional configuration. If not set, then DEFAULT_REFRESH_TIME_BEFORE_TOKEN_EXPIRY_TIME_UNIT
will be used.public java.lang.String getTenant()
public java.lang.String getUsername()