Package com.gencior.triton.core.pojo
Class TritonServerMetadata
java.lang.Object
com.gencior.triton.core.pojo.TritonServerMetadata
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 Summary
Modifier and TypeMethodDescriptionstatic TritonServerMetadatafromProto(GrpcService.ServerMetadataResponse response) Returns an unmodifiable list of extensions supported by the server.getName()Returns the name of the Triton server.Returns the version of the Triton server.booleansupportsExtension(String extension) Checks whether the server supports a specific extension.toString()
-
Method Details
-
fromProto
-
supportsExtension
Checks whether the server supports a specific extension.- Parameters:
extension- the name of the extension to check- Returns:
trueif the server supports the extension,falseotherwise
-
getName
Returns the name of the Triton server.- Returns:
- the server name
-
getVersion
Returns the version of the Triton server.- Returns:
- the server version 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
-