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.UntypedActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<StartTrainedModelDeploymentAction.Request>
org.elasticsearch.xpack.core.ml.action.StartTrainedModelDeploymentAction.Request
- All Implemented Interfaces:
Writeable,RefCounted,TaskAwareRequest,TransportRequest,ToXContent,ToXContentObject
- Enclosing class:
StartTrainedModelDeploymentAction
public static class StartTrainedModelDeploymentAction.Request
extends MasterNodeRequest<StartTrainedModelDeploymentAction.Request>
implements ToXContentObject
-
Nested Class Summary
Nested 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 ParseFieldstatic final ParseFieldstatic final ObjectParser<StartTrainedModelDeploymentAction.Request, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final 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 TypeMethodDescriptionintbooleanintintinthashCode()parseRequest(String modelId, String deploymentId, 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(TimeValue timeout) setWaitForState(AllocationStatus.State waitForState) toString()toXContent(XContentBuilder builder, 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
copyFieldsFrom, 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
-
DEPLOYMENT_ID
-
TIMEOUT
-
WAIT_FOR
-
THREADS_PER_ALLOCATION
-
NUMBER_OF_ALLOCATIONS
-
QUEUE_CAPACITY
-
CACHE_SIZE
-
PRIORITY
-
ADAPTIVE_ALLOCATIONS
-
PARSER
-
-
Constructor Details
-
Request
-
Request
- Throws:
IOException
-
-
Method Details
-
parseRequest
public static StartTrainedModelDeploymentAction.Request parseRequest(String modelId, String deploymentId, XContentParser parser) -
setModelId
-
setDeploymentId
-
getModelId
-
getDeploymentId
-
setTimeout
-
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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
validate
- Specified by:
validatein classActionRequest
-
hashCode
public int hashCode() -
equals
-
toString
- Overrides:
toStringin classAbstractTransportRequest
-