Module org.elasticsearch.xcore
Class TransformState
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.TransformState
- All Implemented Interfaces:
NamedWriteable,Writeable,PersistentTaskState,Task.Status,ToXContent,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 Stringstatic final ParseFieldstatic final ConstructingObjectParser<TransformState, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final 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(XContentParser parser) longgetNode()inthashCode()setNode(NodeAttributes node) booleantoString()toXContent(XContentBuilder builder, 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
-
INDEXER_STATE
-
CURRENT_POSITION
-
POSITION
-
CHECKPOINT
-
REASON
-
PROGRESS
-
NODE
-
SHOULD_STOP_AT_NEXT_CHECKPOINT
-
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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-