Module org.elasticsearch.xcore
Class StartTrainedModelDeploymentAction.Request
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.AbstractTransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.LegacyActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<StartTrainedModelDeploymentAction.Request>
org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentAction.Request
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest,TransportRequest,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
StartTrainedModelDeploymentAction
public static class StartTrainedModelDeploymentAction.Request
extends MasterNodeRequest<StartTrainedModelDeploymentAction.Request>
implements org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested 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.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<StartTrainedModelDeploymentAction.Request, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
INFINITE_MASTER_NODE_TIMEOUT, TRAPPY_IMPLICIT_DEFAULT_MASTER_NODE_TIMEOUTFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCEDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintintorg.elasticsearch.core.TimeValueinthashCode()parseRequest(String modelId, String deploymentId, org.elasticsearch.xcontent.XContentParser parser) voidsetAdaptiveAllocationsSettings(AdaptiveAllocationsSettings adaptiveAllocationsSettings) voidsetCacheSize(ByteSizeValue cacheSize) final voidsetDeploymentId(String deploymentId) final voidsetModelId(String modelId) voidsetNumberOfAllocations(Integer numberOfAllocations) voidsetPriority(String priority) voidsetQueueCapacity(int queueCapacity) voidsetThreadsPerAllocation(int threadsPerAllocation) voidsetTimeout(org.elasticsearch.core.TimeValue timeout) setWaitForState(AllocationStatus.State waitForState) toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) validate()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.action.support.master.MasterNodeRequest
masterNodeTimeout, masterNodeTimeout, masterTermMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.AbstractTransportRequest
getParentTask, getRequestId, remoteAddress, remoteAddress, setParentTask, setRequestIdMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
decRef, hasReferences, incRef, mustIncRef, tryIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, createTask, getDescription, setParentTaskMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_ID
public static final org.elasticsearch.xcontent.ParseField MODEL_ID -
DEPLOYMENT_ID
public static final org.elasticsearch.xcontent.ParseField DEPLOYMENT_ID -
TIMEOUT
public static final org.elasticsearch.xcontent.ParseField TIMEOUT -
WAIT_FOR
public static final org.elasticsearch.xcontent.ParseField WAIT_FOR -
THREADS_PER_ALLOCATION
public static final org.elasticsearch.xcontent.ParseField THREADS_PER_ALLOCATION -
NUMBER_OF_ALLOCATIONS
public static final org.elasticsearch.xcontent.ParseField NUMBER_OF_ALLOCATIONS -
QUEUE_CAPACITY
public static final org.elasticsearch.xcontent.ParseField QUEUE_CAPACITY -
CACHE_SIZE
public static final org.elasticsearch.xcontent.ParseField CACHE_SIZE -
PRIORITY
public static final org.elasticsearch.xcontent.ParseField PRIORITY -
ADAPTIVE_ALLOCATIONS
public static final org.elasticsearch.xcontent.ParseField ADAPTIVE_ALLOCATIONS -
PARSER
public static final org.elasticsearch.xcontent.ObjectParser<StartTrainedModelDeploymentAction.Request,Void> PARSER
-
-
Constructor Details
-
Request
-
Request
- Throws:
IOException
-
-
Method Details
-
parseRequest
public static StartTrainedModelDeploymentAction.Request parseRequest(String modelId, String deploymentId, org.elasticsearch.xcontent.XContentParser parser) -
setModelId
-
setDeploymentId
-
getModelId
-
getDeploymentId
-
setTimeout
public void setTimeout(org.elasticsearch.core.TimeValue timeout) -
getTimeout
public org.elasticsearch.core.TimeValue getTimeout() -
getWaitForState
-
setWaitForState
public StartTrainedModelDeploymentAction.Request setWaitForState(AllocationStatus.State waitForState) -
getNumberOfAllocations
-
computeNumberOfAllocations
public int computeNumberOfAllocations() -
setNumberOfAllocations
-
getAdaptiveAllocationsSettings
-
setAdaptiveAllocationsSettings
-
getThreadsPerAllocation
public int getThreadsPerAllocation() -
setThreadsPerAllocation
public void setThreadsPerAllocation(int threadsPerAllocation) -
getQueueCapacity
public int getQueueCapacity() -
setQueueCapacity
public void setQueueCapacity(int queueCapacity) -
getCacheSize
-
setCacheSize
-
getPriority
-
setPriority
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classMasterNodeRequest<StartTrainedModelDeploymentAction.Request>- Throws:
IOException
-
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
-
validate
- Specified by:
validatein classActionRequest
-
hashCode
public int hashCode() -
equals
-
toString
- Overrides:
toStringin classAbstractTransportRequest
-