Class TritonServerMetadata

java.lang.Object
com.gencior.triton.core.pojo.TritonServerMetadata

public final class TritonServerMetadata extends Object
Encapsulates metadata information about a Triton Inference Server instance.

This class represents server-level metadata such as the server name, version, and supported extensions. This information is retrieved from the Triton Inference Server via the gRPC API.

This is an immutable object that wraps the gRPC message ServerMetadataResponse.

Since:
1.0.0
Author:
sachachoumiloff
  • Method Details

    • fromProto

      public static TritonServerMetadata fromProto(GrpcService.ServerMetadataResponse response)
    • supportsExtension

      public boolean supportsExtension(String extension)
      Checks whether the server supports a specific extension.
      Parameters:
      extension - the name of the extension to check
      Returns:
      true if the server supports the extension, false otherwise
    • getName

      public String getName()
      Returns the name of the Triton server.
      Returns:
      the server name
    • getVersion

      public String getVersion()
      Returns the version of the Triton server.
      Returns:
      the server version string
    • getExtensions

      public List<String> getExtensions()
      Returns an unmodifiable list of extensions supported by the server.

      The returned list is immutable and cannot be modified.

      Returns:
      an immutable list of supported extension names
    • toString

      public String toString()
      Overrides:
      toString in class Object