Class ClientConfig


@Generated("config_generator.py") public class ClientConfig extends AbstractClientConfig
PGX Engine Client Config
  • Method Details

    • parse

      public static ClientConfig parse(InputStream is, boolean strict, String parentPath) throws IOException
      Parses an input stream.
      Parameters:
      is - the input stream
      strict - if true, parses in strict mode
      parentPath - 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

      public static ClientConfig parse(Map<String,Object> raw, boolean strict, String parentPath)
      Parses a raw key/value mapping.
      Parameters:
      raw - the raw key/value mapping to parse
      strict - if true, parses in strict mode
      parentPath - if not null, resolves relative paths against this parentPath
      Returns:
      the parsed graph config
    • parse

      public static ClientConfig parse(Properties props, boolean strict)
      Parses a properties file.
      Parameters:
      props - the properties to parse
      strict - if true, parses in strict mode
      Returns:
      the parsed graph config
    • getConfigFields

      public static ClientConfig.Field[] getConfigFields()
    • getValues

      public Map<ClientConfig.Field,Object> getValues()
      Gets the parsed values.
      Specified by:
      getValues in class AbstractConfig
      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 Map<ClientConfig.Field,Object> getValuesWithoutDefaults()
      Gets the values without defaults.
      Returns:
      the values without defaults
    • getLeftoverValues

      public Map<String,Object> getLeftoverValues()
      Gets the values that do not belong to any field.
      Returns:
      the values that do not belong to any field
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(boolean hideSensitiveData)
    • getBaseUrl

      public String getBaseUrl()
      The base url in the format 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.
      Specified by:
      getBaseUrl in class AbstractClientConfig
    • getPrefetchSize

      public Integer getPrefetchSize()
      How many items should be prefetched in remote iterators.
    • getUploadBatchSize

      public Integer getUploadBatchSize()
      How many items will be uploaded in a batch. This is used in Core#addAllToCollection() and Core#setProperty()
    • getRemoteFutureTimeout

      public Integer getRemoteFutureTimeout()
      How long one 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.
    • getRemoteFuturePendingRetryInterval

      public Integer getRemoteFuturePendingRetryInterval()
      How many milliseconds to wait before sending another request in case a GET request for a PgxRemoteFuture receives a 202 - Accepted response
    • isEnableCctrace

      public Boolean isEnableCctrace()
      if true log every call to a Control or Core interface
    • getCctraceOut

      public String getCctraceOut()
      [relevant for enable_cctrace] when cctrace is enabled, specifies a path to a file where cctrace should log to. If null it will use the default PGX logger on level TRACE. If it is the special value :stderr: it will log to stderr
    • isCctracePrintStacktraces

      public Boolean isCctracePrintStacktraces()
      [relevant for enable_cctrace] when cctrace is enabled, print the stacktrace for each request and result
    • getKeystore

      public 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 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 String getAccessToken()
      the authentication token (if server requires authentication)
    • getMaxClientHttpConnections

      public Integer getMaxClientHttpConnections()
      Maximum number of connections to open to the PGX server
    • getClientServerInteractionMode

      public InteractionMode getClientServerInteractionMode()
      if 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 ready
    • getTlsVersion

      public String getTlsVersion()
      TLS version to be used by the server. For example, TLSv1.3
    • getRealmClientConfig

      public Map getRealmClientConfig()
      implementation dependent configuration options for the realm client
    • isCreatePartitionedGraphsWithGraphBuilder

      public Boolean isCreatePartitionedGraphsWithGraphBuilder()
      if true, the Graph Builder will create partitioned graphs by default
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object