Class TrainedModelAssignmentTaskParameters

java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelAssignmentTaskParameters
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class TrainedModelAssignmentTaskParameters
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

    • modelBytes

      public final int modelBytes()
      Required - The size of the trained model in bytes.

      API name: model_bytes

    • modelId

      public final java.lang.String modelId()
      Required - The unique identifier for the trained model.

      API name: model_id

    • cacheSize

      public final java.lang.String cacheSize()
      Required - The size of the trained model cache.

      API name: cache_size

    • numberOfAllocations

      public final int numberOfAllocations()
      Required - The total number of allocations this model is assigned across ML nodes.

      API name: number_of_allocations

    • queueCapacity

      public final int queueCapacity()
      Required - Number of inference requests are allowed in the queue at a time.

      API name: queue_capacity

    • threadsPerAllocation

      public final int threadsPerAllocation()
      Required - Number of threads per allocation.

      API name: threads_per_allocation

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupTrainedModelAssignmentTaskParametersDeserializer

      protected static void setupTrainedModelAssignmentTaskParametersDeserializer​(ObjectDeserializer<TrainedModelAssignmentTaskParameters.Builder> op)