@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_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseUrl()
The base url in the format
host [ : port][ /path] of the PGX server REST end-point. |
java.lang.String |
getKeystore()
path to the keystore to use for client connections.
|
java.lang.String |
getPassword()
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 |
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 HTTP Basic Auth username
|
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.
|
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() |
getCleanedBaseUrl, getInstance
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
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 getKeystore()
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 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 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
Copyright © 2017 Oracle Corp. All Rights Reserved.