Module org.elasticsearch.xcore
Class StartDatafeedAction.DatafeedParams
java.lang.Object
org.elasticsearch.xpack.core.ml.action.StartDatafeedAction.DatafeedParams
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,PersistentTaskParams,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,MlTaskParams
- Enclosing class:
StartDatafeedAction
public static class StartDatafeedAction.DatafeedParams
extends Object
implements PersistentTaskParams, MlTaskParams
-
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.ObjectParser<StartDatafeedAction.DatafeedParams, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDatafeedParams(String datafeedId, long startTime) DatafeedParams(String datafeedId, String startTime) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromXContent(org.elasticsearch.xcontent.XContentParser parser) getJobId()getMlId()The id of the ML config this task is executinglongorg.elasticsearch.core.TimeValueinthashCode()static longparseDateOrThrow(String date, org.elasticsearch.xcontent.ParseField paramName, LongSupplier now) parseRequest(String datafeedId, org.elasticsearch.xcontent.XContentParser parser) voidsetDatafeedIndices(List<String> datafeedIndices) voidsetEndTime(Long endTime) voidsetEndTime(String endTime) setIndicesOptions(IndicesOptions indicesOptions) voidvoidsetTimeout(org.elasticsearch.core.TimeValue timeout) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) 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
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
INDICES
public static final org.elasticsearch.xcontent.ParseField INDICES -
PARSER
public static final org.elasticsearch.xcontent.ObjectParser<StartDatafeedAction.DatafeedParams,Void> PARSER
-
-
Constructor Details
-
DatafeedParams
-
DatafeedParams
-
DatafeedParams
- Throws:
IOException
-
-
Method Details
-
parseDateOrThrow
public static long parseDateOrThrow(String date, org.elasticsearch.xcontent.ParseField paramName, LongSupplier now) -
fromXContent
public static StartDatafeedAction.DatafeedParams fromXContent(org.elasticsearch.xcontent.XContentParser parser) -
parseRequest
public static StartDatafeedAction.DatafeedParams parseRequest(String datafeedId, org.elasticsearch.xcontent.XContentParser parser) -
getDatafeedId
-
getStartTime
public long getStartTime() -
getEndTime
-
setEndTime
-
setEndTime
-
getTimeout
public org.elasticsearch.core.TimeValue getTimeout() -
setTimeout
public void setTimeout(org.elasticsearch.core.TimeValue timeout) -
getJobId
-
setJobId
-
getDatafeedIndices
-
setDatafeedIndices
-
getIndicesOptions
-
setIndicesOptions
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- 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
-
hashCode
public int hashCode() -
equals
-
getMlId
Description copied from interface:MlTaskParamsThe id of the ML config this task is executing- Specified by:
getMlIdin interfaceMlTaskParams
-