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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLController(String modelId, Map<String, MLRateLimiter> userRateLimiter) MLController(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleaninthashCode()booleanisDeployRequiredAfterUpdate(MLController updateContent) Checks if a deployment is required after updating the MLController.static MLControllerparse(org.opensearch.core.xcontent.XContentParser parser) voidsetModelId(String modelId) voidsetUserRateLimiter(Map<String, MLRateLimiter> userRateLimiter) toString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidupdate(MLController updateContent) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_ID_FIELD
- See Also:
-
USER_RATE_LIMITER
- See Also:
-
-
Constructor Details
-
MLController
-
MLController
- Throws:
IOException
-
-
Method Details
-
parse
public static MLController parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.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:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
isDeployRequiredAfterUpdate
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
-
builder
-
toBuilder
-
getUserRateLimiter
-
setModelId
-
setUserRateLimiter
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getModelId
-