Module org.elasticsearch.xcore
Class TransformStats
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.TransformStats
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
Used as a wrapper for the objects returned from the stats endpoint.
Objects of this class are expected to be ephemeral.
Do not persist objects of this class to cluster state or an index.
-
Nested Class Summary
Nested ClassesNested 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 Stringstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTransformStats(String id, TransformStats.State state, String reason, NodeAttributes node, TransformIndexerStats stats, TransformCheckpointingInfo checkpointingInfo, TransformHealth health) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getNode()getState()inthashCode()static TransformStatsinitialStats(String id) voidsetNode(NodeAttributes node) toString()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:
-
HEALTH_FIELD
-
STATE_FIELD
-
REASON_FIELD
-
NODE_FIELD
-
CHECKPOINTING_INFO_FIELD
-
-
Constructor Details
-
TransformStats
public TransformStats(String id, TransformStats.State state, @Nullable String reason, @Nullable NodeAttributes node, TransformIndexerStats stats, TransformCheckpointingInfo checkpointingInfo, TransformHealth health) -
TransformStats
- Throws:
IOException
-
-
Method Details
-
initialStats
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
getId
-
getState
-
getReason
-
getNode
-
setNode
-
getIndexerStats
-
getCheckpointingInfo
-
getHealth
-
toString
-