Module org.elasticsearch.xcore
Class DataFrameAnalyticsTaskState
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.DataFrameAnalyticsTaskState
- All Implemented Interfaces:
NamedWriteable,Writeable,PersistentTaskState,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,MlTaskState
-
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
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDataFrameAnalyticsTaskState(DataFrameAnalyticsState state, long allocationId, String reason, Instant lastStateChangeTime) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DataFrameAnalyticsTaskStatefromXContent(org.elasticsearch.xcontent.XContentParser parser) longThe time of the last state change.getState()inthashCode()booleanisFailed()booleanorg.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
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DataFrameAnalyticsTaskState
public DataFrameAnalyticsTaskState(DataFrameAnalyticsState state, long allocationId, @Nullable String reason, @Nullable Instant lastStateChangeTime) -
DataFrameAnalyticsTaskState
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static DataFrameAnalyticsTaskState fromXContent(org.elasticsearch.xcontent.XContentParser parser) -
getState
-
getAllocationId
public long getAllocationId() -
getReason
-
getLastStateChangeTime
Description copied from interface:MlTaskStateThe time of the last state change.- Specified by:
getLastStateChangeTimein interfaceMlTaskState
-
isFailed
public boolean isFailed()- Specified by:
isFailedin interfaceMlTaskState- Returns:
- Is the task in the
failedstate?
-
isStatusStale
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
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
-
equals
-
hashCode
public int hashCode()
-