Module org.elasticsearch.xcore
Class TransformStats
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.TransformStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class TransformStats
extends Object
implements Writeable, org.elasticsearch.xcontent.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
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 Stringstatic 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
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()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:
-
HEALTH_FIELD
public static final org.elasticsearch.xcontent.ParseField HEALTH_FIELD -
STATE_FIELD
public static final org.elasticsearch.xcontent.ParseField STATE_FIELD -
REASON_FIELD
public static final org.elasticsearch.xcontent.ParseField REASON_FIELD -
NODE_FIELD
public static final org.elasticsearch.xcontent.ParseField NODE_FIELD -
CHECKPOINTING_INFO_FIELD
public static final org.elasticsearch.xcontent.ParseField 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 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
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
getId
-
getState
-
getReason
-
getNode
-
setNode
-
getIndexerStats
-
getCheckpointingInfo
-
getHealth
-
toString
-