Module org.elasticsearch.xcore
Class AdaptiveAllocationsSettings
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.assignment.AdaptiveAllocationsSettings
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ObjectParser<AdaptiveAllocationsSettings.Builder, Void> static final AdaptiveAllocationsSettingsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAdaptiveAllocationsSettings(Boolean enabled, Integer minNumberOfAllocations, Integer maxNumberOfAllocations) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()merge(AdaptiveAllocationsSettings updates) static AdaptiveAllocationsSettingsparseRequest(XContentParser parser) toXContent(XContentBuilder builder, ToXContent.Params params) validate()voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
RESET_PLACEHOLDER
-
ENABLED
-
MIN_NUMBER_OF_ALLOCATIONS
-
MAX_NUMBER_OF_ALLOCATIONS
-
PARSER
-
-
Constructor Details
-
AdaptiveAllocationsSettings
-
AdaptiveAllocationsSettings
- Throws:
IOException
-
-
Method Details
-
parseRequest
-
getEnabled
-
getMinNumberOfAllocations
-
getMaxNumberOfAllocations
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
merge
-
validate
-
equals
-
hashCode
public int hashCode()
-