Package com.atlan
Class Atlan
java.lang.Object
com.atlan.Atlan
Primary point of configuration for the SDK to one or more tenants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static boolean
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns information about your application configured in the default client.static String
Retrieve the base URL for the tenant of Atlan configured in the default client.static AtlanClient
Retrieve the Atlan client configured for the provided tenant URL.static AtlanClient
Retrieve the Atlan client configured for the provided tenant URL, with a given unique name.static AtlanClient
Retrieve the default client that has been configured.static int
Returns the maximum number of times requests will be retried, as configured in the default client.static void
removeClient
(String baseURL, String name) Remove a configured Atlan client given the URL and (optional) unique name.static void
setApiToken
(String apiToken) Set the API token for the default client.static void
setBaseUrl
(String baseURL) Set the base URL for the default client.static void
setMaxNetworkRetries
(int numRetries) Sets the maximum number of times requests will be retried, in the default client.
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT
public static final int DEFAULT_CONNECT_TIMEOUT- See Also:
-
DEFAULT_READ_TIMEOUT
public static final int DEFAULT_READ_TIMEOUT- See Also:
-
DEFAULT_NETWORK_RETRIES
public static final int DEFAULT_NETWORK_RETRIES- See Also:
-
VERSION
- See Also:
-
EXTRA_HEADERS
-
enableTelemetry
public static volatile boolean enableTelemetry
-
-
Constructor Details
-
Atlan
public Atlan()
-
-
Method Details
-
getClient
Retrieve the Atlan client configured for the provided tenant URL.- Parameters:
baseURL
- base URL of the tenant for which to configure a client
-
getClient
Retrieve the Atlan client configured for the provided tenant URL, with a given unique name. Note: generally we would advise having only a single client per tenant URL, but this method is provided for any rare case where you might want to have multiple clients against a single tenant. Note that this increases resource usage: - Information for that tenant will be cached independently in every client (increased heap) - Cache refreshes will be done independently in every client (increased latency for operations)- Parameters:
baseURL
- base URL of the tenant for which to configure a clientname
- a unique name for this client
-
removeClient
Remove a configured Atlan client given the URL and (optional) unique name.- Parameters:
baseURL
- base URL of the tenant for which the client is configuredname
- (optional) unique name given to the client when it was configured
-
setBaseUrl
Set the base URL for the default client. This must be called BEFORE setApiToken.- Parameters:
baseURL
- base URL of the tenant to use as the default client- See Also:
-
setApiToken
Set the API token for the default client. This can only be called AFTER setBaseUrl.- Parameters:
apiToken
- for the default client- See Also:
-
getDefaultClient
Retrieve the default client that has been configured.- Returns:
- the default client
-
getBaseUrl
Retrieve the base URL for the tenant of Atlan configured in the default client.- Returns:
- the base URL for the tenant configured in the default client
-
getAppInfo
Returns information about your application configured in the default client.- Returns:
- information about your application configured in the default client
-
getMaxNetworkRetries
public static int getMaxNetworkRetries()Returns the maximum number of times requests will be retried, as configured in the default client.- Returns:
- the maximum number of times requests will be retried, as configured in the default client
-
setMaxNetworkRetries
public static void setMaxNetworkRetries(int numRetries) Sets the maximum number of times requests will be retried, in the default client.- Parameters:
numRetries
- the maximum number of times requests will be retried in the default client
-