Package org.elasticsearch.client.ml
Class OpenJobRequest
java.lang.Object
org.elasticsearch.client.ml.OpenJobRequest
- All Implemented Interfaces:
Validatable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class OpenJobRequest
extends Object
implements Validatable, org.elasticsearch.common.xcontent.ToXContentObject
Request to open a Machine Learning Job
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<OpenJobRequest,Void>
static org.elasticsearch.common.xcontent.ParseField
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static OpenJobRequest
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
getJobId()
org.elasticsearch.core.TimeValue
int
hashCode()
void
The jobId to openvoid
setTimeout(org.elasticsearch.core.TimeValue timeout)
How long to wait for job to open before timing out the requesttoString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
Field Details
-
TIMEOUT
public static final org.elasticsearch.common.xcontent.ParseField TIMEOUT -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<OpenJobRequest,Void> PARSER
-
-
Constructor Details
-
OpenJobRequest
Create a new request with the desired jobId- Parameters:
jobId
- unique jobId, must not be null
-
-
Method Details
-
fromXContent
public static OpenJobRequest fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
getJobId
-
setJobId
The jobId to open- Parameters:
jobId
- unique jobId, must not be null
-
getTimeout
public org.elasticsearch.core.TimeValue getTimeout() -
setTimeout
public void setTimeout(org.elasticsearch.core.TimeValue timeout)How long to wait for job to open before timing out the request- Parameters:
timeout
- default value of 30 minutes
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
toString
-
hashCode
public int hashCode() -
equals
-