@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
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl()
The base url in the format
host [ : port][ /path] of the PGX server REST end-point. |
Charset |
getCharset()
Gets the charset.
|
Integer |
getPrefetchSize()
How many items should be prefetched in remote iterators.
|
Integer |
getRemoteFutureTimeout()
How long one
GET request for a PgxRemoteFuture will be alive, until it times out and tries again. |
Integer |
getUploadBatchSize()
How many items will be uploaded in a batch.
|
Map<ClientConfig.Field,Object> |
getValues()
Gets the parsed values.
|
Map<ClientConfig.Field,Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(ClientConfig.Field field)
Checks for default value.
|
static ClientConfig |
parse(InputStream is, boolean strict, File parent)
Parses an input stream.
|
static ClientConfig |
parse(Map<String,Object> raw, boolean strict, File parent)
Parses a raw key/value mapping.
|
static ClientConfig |
parse(Properties props, boolean strict)
Parses a properties file.
|
String |
toString() |
getInstancesetSerializablepublic 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. You can use the form [ user [ : password ] @ ] host [ : port][ /path] to specify a basic auth username and password.public Charset getCharset()
public Integer getPrefetchSize()
public 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 Integer getUploadBatchSize()
Core#addAllToCollection() and Core#setProperty()public Map<ClientConfig.Field,Object> getValues()
public Map<ClientConfig.Field,Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(ClientConfig.Field field)
field - the fieldpublic static ClientConfig parse(InputStream is, boolean strict, File parent) throws IOException
is - the input streamstrict - if true, parses in strict modeparent - if not null, resolves relative paths against this parentIOException - Signals that an I/O exception has occurred.public static ClientConfig parse(Map<String,Object> raw, boolean strict, File parent)
raw - the raw key/value mapping to parsestrict - if true, parses in strict modeparent - if not null, resolves relative paths against this parentpublic static ClientConfig parse(Properties props, boolean strict)
props - the properties to parsestrict - if true, parses in strict modeCopyright © 2015. All rights reserved.