Package com.ocient.jdbc
Class XGProperties
java.lang.Object
com.ocient.jdbc.XGProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe connection activator thread pool is used to activate and establish database connections asynchronously.static final DurationSpecifies the amount of time to wait in between eviction runs.static final DurationSpecifies the minimum amount of time that a closed connection must remain idle before it is eligible for eviction.static final intThe minimum number of connections to cache per database endpoint.static final intNumber of connections to evict per run.static final intThe maximum of number of parallel TCP streams used to issue fetch data requests.static final Stringstatic final intThe maximum of number of result set buffers in each fetch data response.static final Stringstatic final intThe maximum of number of parallel TCP streams used to issue fetch data requests when streaming a sorted result set.static final Stringstatic final intThe minimum of number of result set buffers in each fetch data response.static final Stringstatic final intThe maximum number of fetch data requests to queue on the server's network receive buffer when multiple TCP streams are used to fetch results.static final Stringstatic final intThe maximum of number of result set buffers to hold in memory at any given time.static final Stringstatic final intThe maximum number of fetch data requests to queue on the server's network receive buffer when a single TCP stream is used to fetch results.static final String -
Method Summary
Modifier and TypeMethodDescriptionReturns the default values for all stream properties.Returns the default stream properties for RTA workloads.static voidvalidateStreamProperties(Map<String, Integer> properties) Validate the given stream properties.
-
Field Details
-
MIN_RESULT_SET_BUFFERS_PER_RESPONSE_KEY
- See Also:
-
MAX_RESULT_SET_BUFFERS_PER_RESPONSE_KEY
- See Also:
-
MAX_PARALLEL_TCP_STREAMS_KEY
- See Also:
-
MAX_SEQUENCED_PARALLEL_TCP_STREAMS_KEY
- See Also:
-
RESULT_SET_BUFFER_QUEUE_DEPTH_KEY
- See Also:
-
SINGLE_TCP_STREAM_READ_AHEAD_KEY
- See Also:
-
PARALLEL_TCP_STREAM_READ_AHEAD_KEY
- See Also:
-
CONNECTION_POOL_ACTIVATION_PERMITS
public static final int CONNECTION_POOL_ACTIVATION_PERMITSThe connection activator thread pool is used to activate and establish database connections asynchronously. It uses a core pool size of 1 and an unbounded maximum pool size.A semaphore is used to throttle the maximum number of concurrent activation tasks. It uses a fair policy to ensure that all pending tasks have an equal chance of acquiring permits.
-
CONNECTION_POOL_MIN_IDLE_PER_EDNPOINT
public static final int CONNECTION_POOL_MIN_IDLE_PER_EDNPOINTThe minimum number of connections to cache per database endpoint. Bursty applications may want to increase this value. -
CONNECTION_POOL_MIN_EVICTABLE_IDLE_TIME_MILLIS
Specifies the minimum amount of time that a closed connection must remain idle before it is eligible for eviction.This is a soft limit, which means that it does not guarantee that objects will be evicted after the specified time. Instead, it provides a hint to the eviction thread that connections should be evicted if they are idle for longer than the specified time and if the pool size exceeds the maximum size limit.
It's worth noting that setting a high value for can lead to increased memory usage and decreased performance, as idle objects will remain in the pool for longer periods of time.
-
CONNECTION_POOL_MILLIS_BETWEEN_EVICTION_RUNS
Specifies the amount of time to wait in between eviction runs. -
CONNECTION_POOL_NUM_TESTS_PER_EVICTION_RUN
public static final int CONNECTION_POOL_NUM_TESTS_PER_EVICTION_RUNNumber of connections to evict per run. -
PARALLEL_TCP_STREAM_READ_AHEAD
public static final int PARALLEL_TCP_STREAM_READ_AHEADThe maximum number of fetch data requests to queue on the server's network receive buffer when multiple TCP streams are used to fetch results. -
SINGLE_TCP_STREAM_READ_AHEAD
public static final int SINGLE_TCP_STREAM_READ_AHEADThe maximum number of fetch data requests to queue on the server's network receive buffer when a single TCP stream is used to fetch results. -
MAX_PARALLEL_TCP_STREAMS
public static final int MAX_PARALLEL_TCP_STREAMSThe maximum of number of parallel TCP streams used to issue fetch data requests. -
MAX_SEQUENCED_PARALLEL_TCP_STREAMS
public static final int MAX_SEQUENCED_PARALLEL_TCP_STREAMSThe maximum of number of parallel TCP streams used to issue fetch data requests when streaming a sorted result set. -
RESULT_SET_BUFFER_QUEUE_DEPTH
public static final int RESULT_SET_BUFFER_QUEUE_DEPTHThe maximum of number of result set buffers to hold in memory at any given time. -
MAX_RESULT_SET_BUFFERS_PER_RESPONSE
public static final int MAX_RESULT_SET_BUFFERS_PER_RESPONSEThe maximum of number of result set buffers in each fetch data response. -
MIN_RESULT_SET_BUFFERS_PER_RESPONSE
public static final int MIN_RESULT_SET_BUFFERS_PER_RESPONSEThe minimum of number of result set buffers in each fetch data response.
-
-
Method Details
-
getDefaultStreamProperties
Returns the default values for all stream properties. -
getRTAStreamProperties
Returns the default stream properties for RTA workloads. -
validateStreamProperties
Validate the given stream properties.
-