public static enum ClientConfig.Field extends java.lang.Enum<ClientConfig.Field> implements ConfigField
Enum Constant and Description |
---|
ACCESS_TOKEN
the authentication token (if server requires authentication)
|
BASE_URL
The base url in the format
host [ : port][ /path] of the PGX server REST end-point. |
CCTRACE_OUT
[relevant for enable_cctrace] when cctrace is enabled, specifies a path to a file where cctrace should log to.
|
CCTRACE_PRINT_STACKTRACES
[relevant for enable_cctrace] when cctrace is enabled, print the stacktrace for each request and result
|
CLIENT_SERVER_INTERACTION_MODE
if
async_polling the PGX client would poll the status of the future until it's completed. |
ENABLE_CCTRACE
if
true log every call to a Control or Core interface |
KEYSTORE
path to the keystore to use for client connections.
|
MAX_CLIENT_HTTP_CONNECTIONS
Maximum number of connections to open to the PGX server
|
PASSWORD
if username is given, this is the HTTP BASIC Auth password.
|
PREFETCH_SIZE
How many items should be prefetched in remote iterators.
|
REMOTE_FUTURE_PENDING_RETRY_INTERVAL
How many milliseconds to wait before sending another request in case a
GET request for a PgxRemoteFuture receives a 202 - Accepted response |
REMOTE_FUTURE_TIMEOUT
How long one
GET request for a PgxRemoteFuture will be alive, until it times out and tries again. |
TLS_VERSION
TLS version to be used by the client.
|
TRUSTSTORE
path to the truststore to use for client connections.
|
UPLOAD_BATCH_SIZE
How many items will be uploaded in a batch.
|
USERNAME
The username (if server requires HTTP BASIC authentication)
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultVal()
Gets the default value of this field.
|
java.util.List<java.lang.String> |
getKeyAliases()
Gets the key aliases of this field which are also recognized during parsing.
|
java.util.List<java.lang.String> |
getSingletonListKeyAliases()
Gets the key aliases of this field which contain single values for lists and are also recognized during parsing.
|
java.lang.Class<?> |
getType()
Gets the type of this field.
|
boolean |
isArray()
Checks if this field is an array.
|
boolean |
isHidden()
Checks if this field should be hidden.
|
boolean |
isPath()
Checks if this field is a path.
|
boolean |
isRequired()
Checks if this field is required.
|
boolean |
isSensitive()
Checks if this field holds a sensitive data.
|
java.lang.String |
toKey()
Get the key of this field, which is how this field is represented in serialized form.
|
java.lang.String |
toString() |
static ClientConfig.Field |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientConfig.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
isEnum, isPrimitive
public static final ClientConfig.Field ACCESS_TOKEN
public static final ClientConfig.Field BASE_URL
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.public static final ClientConfig.Field CCTRACE_OUT
null
it will use the default PGX logger on level TRACE. If it is the special value :stderr:
it will log to stderrpublic static final ClientConfig.Field CCTRACE_PRINT_STACKTRACES
public static final ClientConfig.Field CLIENT_SERVER_INTERACTION_MODE
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 final ClientConfig.Field ENABLE_CCTRACE
true
log every call to a Control or Core interfacepublic static final ClientConfig.Field KEYSTORE
public static final ClientConfig.Field MAX_CLIENT_HTTP_CONNECTIONS
public static final ClientConfig.Field PASSWORD
public static final ClientConfig.Field PREFETCH_SIZE
public static final ClientConfig.Field REMOTE_FUTURE_PENDING_RETRY_INTERVAL
GET
request for a PgxRemoteFuture
receives a 202 - Accepted responsepublic static final ClientConfig.Field REMOTE_FUTURE_TIMEOUT
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 static final ClientConfig.Field TLS_VERSION
public static final ClientConfig.Field TRUSTSTORE
public static final ClientConfig.Field UPLOAD_BATCH_SIZE
Core#addAllToCollection()
and Core#setProperty()
public static final ClientConfig.Field USERNAME
public java.lang.Object getDefaultVal()
ConfigField
getDefaultVal
in interface ConfigField
public java.util.List<java.lang.String> getKeyAliases()
ConfigField
getKeyAliases
in interface ConfigField
public java.util.List<java.lang.String> getSingletonListKeyAliases()
ConfigField
getSingletonListKeyAliases
in interface ConfigField
public java.lang.Class<?> getType()
ConfigField
getType
in interface ConfigField
public boolean isArray()
ConfigField
isArray
in interface ConfigField
public boolean isHidden()
ConfigField
isHidden
in interface ConfigField
public boolean isPath()
ConfigField
isPath
in interface ConfigField
public boolean isRequired()
ConfigField
isRequired
in interface ConfigField
public boolean isSensitive()
ConfigField
isSensitive
in interface ConfigField
public java.lang.String toKey()
ConfigField
toKey
in interface ConfigField
public java.lang.String toString()
toString
in class java.lang.Enum<ClientConfig.Field>
public static ClientConfig.Field valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ClientConfig.Field[] values()
for (ClientConfig.Field c : ClientConfig.Field.values()) System.out.println(c);
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.