Class MLController

java.lang.Object
org.opensearch.ml.common.controller.MLController
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject

public class MLController extends Object implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
  • Field Details

  • Constructor Details

  • Method Details

    • parse

      public static MLController parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • isDeployRequiredAfterUpdate

      public boolean isDeployRequiredAfterUpdate(MLController updateContent)
      Checks if a deployment is required after updating the MLController.
      Parameters:
      updateContent - The updated MLController object.
      Returns:
      True if a deployment is required, false otherwise.
    • update

      public void update(MLController updateContent)
    • builder

      public static MLController.MLControllerBuilder builder()
    • toBuilder

    • getUserRateLimiter

      public Map<String,MLRateLimiter> getUserRateLimiter()
    • setModelId

      public void setModelId(String modelId)
    • setUserRateLimiter

      public void setUserRateLimiter(Map<String,MLRateLimiter> userRateLimiter)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getModelId

      public String getModelId()