Module org.elasticsearch.xcore
Class AdaptiveAllocationsSettings
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.assignment.AdaptiveAllocationsSettings
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.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(org.elasticsearch.xcontent.XContentParser parser) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField ENABLED -
MIN_NUMBER_OF_ALLOCATIONS
public static final org.elasticsearch.xcontent.ParseField MIN_NUMBER_OF_ALLOCATIONS -
MAX_NUMBER_OF_ALLOCATIONS
public static final org.elasticsearch.xcontent.ParseField MAX_NUMBER_OF_ALLOCATIONS -
PARSER
public static final org.elasticsearch.xcontent.ObjectParser<AdaptiveAllocationsSettings.Builder,Void> PARSER
-
-
Constructor Details
-
AdaptiveAllocationsSettings
-
AdaptiveAllocationsSettings
- Throws:
IOException
-
-
Method Details
-
parseRequest
public static AdaptiveAllocationsSettings parseRequest(org.elasticsearch.xcontent.XContentParser parser) -
getEnabled
-
getMinNumberOfAllocations
-
getMaxNumberOfAllocations
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
merge
-
validate
-
equals
-
hashCode
public int hashCode()
-