Package com.gencior.triton.config
Class TritonClientConfig
java.lang.Object
com.gencior.triton.config.TritonClientConfig
Configuration object for the Triton Inference Server client.
This class encapsulates the connection and behavior settings required to communicate with a Triton Inference Server instance. It provides a builder pattern for flexible and fluent configuration.
Usage Example:
TritonClientConfig config = new TritonClientConfig.Builder("http://localhost:8000")
.verbose(true)
.timeout(30000)
.build();
The configuration supports the following settings:
- URL: The base URL of the Triton server (required)
- Verbose: Enable verbose logging for debugging purposes (optional, default: false)
- Timeout: Default timeout in milliseconds for client operations (optional, default: 60000ms)
- Since:
- 1.0.0
- Author:
- sachachoumiloff
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for constructingTritonClientConfiginstances. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the default timeout in milliseconds for client operations.getUrl()Returns the base URL of the Triton Inference Server.booleanReturns whether verbose logging is enabled for this client.
-
Method Details
-
getUrl
Returns the base URL of the Triton Inference Server.- Returns:
- the Triton server URL (e.g., "http://localhost:8000" or "grpc://localhost:8001")
-
isVerbose
public boolean isVerbose()Returns whether verbose logging is enabled for this client.When enabled, the client will produce detailed logging output for debugging purposes.
- Returns:
trueif verbose logging is enabled,falseotherwise
-
getDefaultTimeoutMs
public long getDefaultTimeoutMs()Returns the default timeout in milliseconds for client operations.This timeout is used for operations that do not specify their own timeout values. The timeout must be greater than zero.
- Returns:
- the default timeout in milliseconds
-