Package oracle.pgx.config
Class ClientConfig
- java.lang.Object
-
- oracle.pgx.config.AbstractConfig
-
- oracle.pgx.config.AbstractClientConfig
-
- oracle.pgx.config.ClientConfig
-
@Generated("config_generator.py") public class ClientConfig extends AbstractClientConfig
PGX Engine Client Config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientConfig.Field
Fields of PGX Engine Client Config
-
Field Summary
-
Fields inherited from class oracle.pgx.config.AbstractConfig
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 formathost [ : 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()
ifasync_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.util.Map<java.lang.String,java.lang.Object>
getLeftoverValues()
Gets the values that do not belong to any field.java.lang.Integer
getMaxClientHttpConnections()
Maximum number of connections to open to the PGX serverjava.lang.Integer
getPrefetchSize()
How many items should be prefetched in remote iterators.java.util.Map
getRealmClientConfig()
implementation dependent configuration options for the realm clientjava.lang.Integer
getRemoteFuturePendingRetryInterval()
How many milliseconds to wait before sending another request in case aGET
request for aPgxRemoteFuture
receives a 202 - Accepted responsejava.lang.Integer
getRemoteFutureTimeout()
How long oneGET
request for aPgxRemoteFuture
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.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 resultboolean
isEmpty()
Checks if it's empty.java.lang.Boolean
isEnableCctrace()
iftrue
log every call to a Control or Core interfacestatic 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)
-
Methods inherited from class oracle.pgx.config.AbstractClientConfig
getCleanedBaseUrl, getInstance
-
Methods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
-
-
-
Method Detail
-
parse
public static ClientConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
Parses an input stream.- Parameters:
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
parse
public 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.- Parameters:
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPath- Returns:
- the parsed graph config
-
parse
public static ClientConfig parse(java.util.Properties props, boolean strict)
Parses a properties file.- Parameters:
props
- the properties to parsestrict
- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
public static ClientConfig.Field[] getConfigFields()
-
getValues
public java.util.Map<ClientConfig.Field,java.lang.Object> getValues()
Gets the parsed values.- Specified by:
getValues
in classAbstractConfig
- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()
Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
public boolean hasDefaultValue(ClientConfig.Field field)
Checks for default value.- Parameters:
field
- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
public java.util.Map<ClientConfig.Field,java.lang.Object> getValuesWithoutDefaults()
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(boolean hideSensitiveData)
-
getBaseUrl
public java.lang.String getBaseUrl()
The base url in the formathost [ : port][ /path]
of the PGX server REST end-point. If the base_url isnull
, the default will be used which points to embedded PGX instance.- Specified by:
getBaseUrl
in classAbstractClientConfig
-
getPrefetchSize
public java.lang.Integer getPrefetchSize()
How many items should be prefetched in remote iterators.
-
getUploadBatchSize
public java.lang.Integer getUploadBatchSize()
How many items will be uploaded in a batch. This is used inCore#addAllToCollection()
andCore#setProperty()
-
getRemoteFutureTimeout
public java.lang.Integer getRemoteFutureTimeout()
How long oneGET
request for aPgxRemoteFuture
will be alive, until it times out and tries again. Time in milliseconds, set it to zero for an infinite timeout. See HTTP ClientSO_TIMEOUT
for more details.
-
getRemoteFuturePendingRetryInterval
public java.lang.Integer getRemoteFuturePendingRetryInterval()
How many milliseconds to wait before sending another request in case aGET
request for aPgxRemoteFuture
receives a 202 - Accepted response
-
isEnableCctrace
public java.lang.Boolean isEnableCctrace()
iftrue
log every call to a Control or Core interface
-
getCctraceOut
public java.lang.String getCctraceOut()
[relevant for enable_cctrace] when cctrace is enabled, specifies a path to a file where cctrace should log to. Ifnull
it will use the default PGX logger on level TRACE. If it is the special value:stderr:
it will log to stderr
-
isCctracePrintStacktraces
public java.lang.Boolean isCctracePrintStacktraces()
[relevant for enable_cctrace] when cctrace is enabled, print the stacktrace for each request and result
-
getKeystore
public java.lang.String getKeystore()
path to the keystore to use for client connections. The keystore is used to authenticate this client at the PGX server if two-way SSL/TLS is enabled.
-
getTruststore
public java.lang.String getTruststore()
path to the truststore to use for client connections. The truststore is used to validate the server certificate if communicating over SSL/TLS.
-
getAccessToken
public java.lang.String getAccessToken()
the authentication token (if server requires authentication)
-
getMaxClientHttpConnections
public java.lang.Integer getMaxClientHttpConnections()
Maximum number of connections to open to the PGX server
-
getClientServerInteractionMode
public InteractionMode getClientServerInteractionMode()
ifasync_polling
the PGX client would poll the status of the future until it's completed. Ifblocking
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 ready
-
getTlsVersion
public java.lang.String getTlsVersion()
TLS version to be used by the client. For example, TLSv1.2
-
getRealmClientConfig
public java.util.Map getRealmClientConfig()
implementation dependent configuration options for the realm client
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-