Package oracle.pgx.config
Class ClientConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
oracle.pgx.config.AbstractClientConfig
oracle.pgx.config.ClientConfig
PGX Engine Client Config
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFields 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
Modifier and TypeMethodDescriptionbooleanthe authentication token (if server requires authentication)The base url in the formathost [ : port][ /path]of the PGX server REST end-point.[relevant for enable_cctrace] when cctrace is enabled, specifies a path to a file where cctrace should log to.ifasync_pollingthe PGX client would poll the status of the future until it's completed.static ClientConfig.Field[]path to the keystore to use for client connections.Gets the values that do not belong to any field.Maximum number of connections to open to the PGX serverHow many items should be prefetched in remote iterators.implementation dependent configuration options for the realm clientHow many milliseconds to wait before sending another request in case aGETrequest for aPgxRemoteFuturereceives a 202 - Accepted responseHow long oneGETrequest for aPgxRemoteFuturewill be alive, until it times out and tries again.TLS version to be used by the server.path to the truststore to use for client connections.How many items will be uploaded in a batch.Gets the parsed values.Gets the values without defaults.booleanChecks for default value.[relevant for enable_cctrace] when cctrace is enabled, print the stacktrace for each request and resultiftrue, the Graph Builder will create partitioned graphs by defaultbooleanisEmpty()Checks if it's empty.iftruelog every call to a Control or Core interfacestatic ClientConfigparse(InputStream is, boolean strict, String parentPath) Parses an input stream.static ClientConfigParses a raw key/value mapping.static ClientConfigparse(Properties props, boolean strict) Parses a properties file.toString()toString(boolean hideSensitiveData) Methods inherited from class oracle.pgx.config.AbstractClientConfig
getCleanedBaseUrl, getInstanceMethods inherited from class oracle.pgx.config.AbstractConfig
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
-
Method Details
-
parse
public static ClientConfig parse(InputStream is, boolean strict, String parentPath) throws 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:
IOException- Signals that an I/O exception has occurred.
-
parse
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
Parses a properties file.- Parameters:
props- the properties to parsestrict- if true, parses in strict mode- Returns:
- the parsed graph config
-
getConfigFields
-
getValues
Gets the parsed values.- Specified by:
getValuesin classAbstractConfig- Returns:
- the parsed values
-
isEmpty
public boolean isEmpty()Checks if it's empty.- Returns:
- true, if the Map 'values' is empty.
-
hasDefaultValue
Checks for default value.- Parameters:
field- the field- Returns:
- true, if value for given field is the default value
-
getValuesWithoutDefaults
Gets the values without defaults.- Returns:
- the values without defaults
-
getLeftoverValues
Gets the values that do not belong to any field.- Returns:
- the values that do not belong to any field
-
toString
-
toString
-
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:
getBaseUrlin classAbstractClientConfig
-
getPrefetchSize
How many items should be prefetched in remote iterators. -
getUploadBatchSize
How many items will be uploaded in a batch. This is used inCore#addAllToCollection()andCore#setProperty() -
getRemoteFutureTimeout
How long oneGETrequest for aPgxRemoteFuturewill be alive, until it times out and tries again. Time in milliseconds, set it to zero for an infinite timeout. See HTTP ClientSO_TIMEOUTfor more details. -
getRemoteFuturePendingRetryInterval
How many milliseconds to wait before sending another request in case aGETrequest for aPgxRemoteFuturereceives a 202 - Accepted response -
isEnableCctrace
iftruelog every call to a Control or Core interface -
getCctraceOut
[relevant for enable_cctrace] when cctrace is enabled, specifies a path to a file where cctrace should log to. Ifnullit will use the default PGX logger on level TRACE. If it is the special value:stderr:it will log to stderr -
isCctracePrintStacktraces
[relevant for enable_cctrace] when cctrace is enabled, print the stacktrace for each request and result -
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
path to the truststore to use for client connections. The truststore is used to validate the server certificate if communicating over SSL/TLS. -
getAccessToken
the authentication token (if server requires authentication) -
getMaxClientHttpConnections
Maximum number of connections to open to the PGX server -
getClientServerInteractionMode
ifasync_pollingthe PGX client would poll the status of the future until it's completed. Ifblockingthe 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
TLS version to be used by the server. For example, TLSv1.3 -
getRealmClientConfig
implementation dependent configuration options for the realm client -
isCreatePartitionedGraphsWithGraphBuilder
iftrue, the Graph Builder will create partitioned graphs by default -
equals
-