@Generated(value="config_generator.py") public class ClientConfig extends AbstractClientConfig
Modifier and Type | Class and Description |
---|---|
static class |
ClientConfig.Field
Fields of PGX Engine Client Config
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessToken()
the authentication token (if server requires authentication)
|
java.lang.String |
getBaseUrl()
The base url in the format
host [ : port][ /path] of the PGX server REST end-point. |
java.lang.String |
getCctraceOut()
[relevant for enable_cctrace] when cctrace is enabled, specifies a path to a file where cctrace should log to.
|
InteractionMode |
getClientServerInteractionMode()
if
async_polling the PGX client would poll the status of the future until it's completed. |
static ClientConfig.Field[] |
getConfigFields() |
java.lang.String |
getKeystore()
path to the keystore to use for client connections.
|
java.lang.Integer |
getMaxClientHttpConnections()
Maximum number of connections to open to the PGX server
|
java.lang.String |
getPassword()
if username is given, this is the HTTP BASIC Auth password.
|
java.lang.Integer |
getPrefetchSize()
How many items should be prefetched in remote iterators.
|
java.lang.Integer |
getRemoteFuturePendingRetryInterval()
How many milliseconds to wait before sending another request in case a
GET request for a PgxRemoteFuture receives a 202 - Accepted response |
java.lang.Integer |
getRemoteFutureTimeout()
How long one
GET request for a PgxRemoteFuture will be alive, until it times out and tries again. |
java.lang.String |
getTlsVersion()
TLS version to be used by the client.
|
java.lang.String |
getTruststore()
path to the truststore to use for client connections.
|
java.lang.Integer |
getUploadBatchSize()
How many items will be uploaded in a batch.
|
java.lang.String |
getUsername()
The username (if server requires HTTP BASIC authentication)
|
java.util.Map<ClientConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<ClientConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(ClientConfig.Field field)
Checks for default value.
|
java.lang.Boolean |
isCctracePrintStacktraces()
[relevant for enable_cctrace] when cctrace is enabled, print the stacktrace for each request and result
|
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isEnableCctrace()
if
true log every call to a Control or Core interface |
static ClientConfig |
parse(java.io.InputStream is,
boolean strict,
java.lang.String parentPath)
Parses an input stream.
|
static ClientConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw,
boolean strict,
java.lang.String parentPath)
Parses a raw key/value mapping.
|
static ClientConfig |
parse(java.util.Properties props,
boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
java.lang.String |
toString(boolean hideSensitiveData) |
getCleanedBaseUrl, getInstance
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getAccessToken()
public java.lang.String getBaseUrl()
host [ : port][ /path]
of the PGX server REST end-point. If the base_url is null
, the default will be used which points to embedded PGX instance.getBaseUrl
in class AbstractClientConfig
public java.lang.String getCctraceOut()
null
it will use the default PGX logger on level TRACE. If it is the special value :stderr:
it will log to stderrpublic InteractionMode getClientServerInteractionMode()
async_polling
the PGX client would poll the status of the future until it's completed. If blocking
the PGX client would send a request to directly get the value of the future and the server would block until the future result is readypublic static ClientConfig.Field[] getConfigFields()
public java.lang.String getKeystore()
public java.lang.Integer getMaxClientHttpConnections()
public java.lang.String getPassword()
public java.lang.Integer getPrefetchSize()
public java.lang.Integer getRemoteFuturePendingRetryInterval()
GET
request for a PgxRemoteFuture
receives a 202 - Accepted responsepublic java.lang.Integer getRemoteFutureTimeout()
GET
request for a PgxRemoteFuture
will be alive, until it times out and tries again. Time in milliseconds, set it to zero for an infinite timeout. See HTTP Client SO_TIMEOUT
for more details.public java.lang.String getTlsVersion()
public java.lang.String getTruststore()
public java.lang.Integer getUploadBatchSize()
Core#addAllToCollection()
and Core#setProperty()
public java.lang.String getUsername()
public java.util.Map<ClientConfig.Field,java.lang.Object> getValues()
public java.util.Map<ClientConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(ClientConfig.Field field)
field
- the fieldpublic java.lang.Boolean isCctracePrintStacktraces()
public boolean isEmpty()
public java.lang.Boolean isEnableCctrace()
true
log every call to a Control or Core interfacepublic static ClientConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathjava.io.IOException
- Signals that an I/O exception has occurred.public static ClientConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathpublic static ClientConfig parse(java.util.Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modepublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean hideSensitiveData)
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.