Class TritonClientConfig

java.lang.Object
com.gencior.triton.config.TritonClientConfig

public class TritonClientConfig extends Object
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
  • Method Details

    • getUrl

      public String 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:
      true if verbose logging is enabled, false otherwise
    • 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