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 AbstractClientConfigPGX Engine Client Config
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientConfig.FieldFields 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 booleanequals(java.lang.Object obj)java.lang.StringgetAccessToken()the authentication token (if server requires authentication)java.lang.StringgetBaseUrl()The base url in the formathost [ : port][ /path]of the PGX server REST end-point.java.lang.StringgetCctraceOut()[relevant for enable_cctrace] when cctrace is enabled, specifies a path to a file where cctrace should log to.InteractionModegetClientServerInteractionMode()ifasync_pollingthe PGX client would poll the status of the future until it's completed.static ClientConfig.Field[]getConfigFields()java.lang.StringgetKeystore()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.IntegergetMaxClientHttpConnections()Maximum number of connections to open to the PGX serverjava.lang.IntegergetPrefetchSize()How many items should be prefetched in remote iterators.java.util.MapgetRealmClientConfig()implementation dependent configuration options for the realm clientjava.lang.IntegergetRemoteFuturePendingRetryInterval()How many milliseconds to wait before sending another request in case aGETrequest for aPgxRemoteFuturereceives a 202 - Accepted responsejava.lang.IntegergetRemoteFutureTimeout()How long oneGETrequest for aPgxRemoteFuturewill be alive, until it times out and tries again.java.lang.StringgetTlsVersion()TLS version to be used by the client.java.lang.StringgetTruststore()path to the truststore to use for client connections.java.lang.IntegergetUploadBatchSize()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.booleanhasDefaultValue(ClientConfig.Field field)Checks for default value.java.lang.BooleanisCctracePrintStacktraces()[relevant for enable_cctrace] when cctrace is enabled, print the stacktrace for each request and resultjava.lang.BooleanisCreatePartitionedGraphsWithGraphBuilder()iftrue, the Graph Builder will create partitioned graphs by defaultbooleanisEmpty()Checks if it's empty.java.lang.BooleanisEnableCctrace()iftruelog every call to a Control or Core interfacestatic ClientConfigparse(java.io.InputStream is, boolean strict, java.lang.String parentPath)Parses an input stream.static ClientConfigparse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)Parses a raw key/value mapping.static ClientConfigparse(java.util.Properties props, boolean strict)Parses a properties file.java.lang.StringtoString()java.lang.StringtoString(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:
getValuesin 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:
toStringin 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:
getBaseUrlin 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 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
public java.lang.Integer getRemoteFuturePendingRetryInterval()
How many milliseconds to wait before sending another request in case aGETrequest for aPgxRemoteFuturereceives a 202 - Accepted response
-
isEnableCctrace
public java.lang.Boolean isEnableCctrace()
iftruelog 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. Ifnullit 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_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
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
-
isCreatePartitionedGraphsWithGraphBuilder
public java.lang.Boolean isCreatePartitionedGraphsWithGraphBuilder()
iftrue, the Graph Builder will create partitioned graphs by default
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-