Module org.elasticsearch.xcore
Class TransformState
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.TransformState
- All Implemented Interfaces:
NamedWriteable,Writeable,PersistentTaskState,Task.Status,org.elasticsearch.xcontent.ToXContent,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 Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<TransformState, 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 interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTransformState(TransformTaskState taskState, IndexerState indexerState, TransformIndexerPosition position, long checkpoint, String reason, TransformProgress progress, NodeAttributes node, boolean shouldStopAtNextCheckpoint, AuthorizationState authState) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TransformStatefromXContent(org.elasticsearch.xcontent.XContentParser parser) longgetNode()inthashCode()setNode(NodeAttributes node) booleantoString()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, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
TASK_STATE
public static final org.elasticsearch.xcontent.ParseField TASK_STATE -
INDEXER_STATE
public static final org.elasticsearch.xcontent.ParseField INDEXER_STATE -
CURRENT_POSITION
public static final org.elasticsearch.xcontent.ParseField CURRENT_POSITION -
POSITION
public static final org.elasticsearch.xcontent.ParseField POSITION -
CHECKPOINT
public static final org.elasticsearch.xcontent.ParseField CHECKPOINT -
REASON
public static final org.elasticsearch.xcontent.ParseField REASON -
PROGRESS
public static final org.elasticsearch.xcontent.ParseField PROGRESS -
NODE
public static final org.elasticsearch.xcontent.ParseField NODE -
SHOULD_STOP_AT_NEXT_CHECKPOINT
public static final org.elasticsearch.xcontent.ParseField SHOULD_STOP_AT_NEXT_CHECKPOINT -
AUTH_STATE
public static final org.elasticsearch.xcontent.ParseField AUTH_STATE -
PARSER
-
-
Constructor Details
-
TransformState
public TransformState(TransformTaskState taskState, IndexerState indexerState, @Nullable TransformIndexerPosition position, long checkpoint, @Nullable String reason, @Nullable TransformProgress progress, @Nullable NodeAttributes node, boolean shouldStopAtNextCheckpoint, @Nullable AuthorizationState authState) -
TransformState
- Throws:
IOException
-
-
Method Details
-
getTaskState
-
getIndexerState
-
getPosition
-
getCheckpoint
public long getCheckpoint() -
getProgress
-
getReason
-
getNode
-
setNode
-
shouldStopAtNextCheckpoint
public boolean shouldStopAtNextCheckpoint() -
getAuthState
-
fromXContent
-
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
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-