Class SingleNodeShutdownMetadata
java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<SingleNodeShutdownMetadata>
org.elasticsearch.cluster.metadata.SingleNodeShutdownMetadata
- All Implemented Interfaces:
Diffable<SingleNodeShutdownMetadata>,Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class SingleNodeShutdownMetadata
extends AbstractDiffable<SingleNodeShutdownMetadata>
implements org.elasticsearch.common.xcontent.ToXContentObject, Diffable<SingleNodeShutdownMetadata>
Contains data about a single node's shutdown readiness.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classDescribes the status of a component of shutdown.static classDescribes the type of node shutdown - permanent (REMOVE) or temporary (RESTART).Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.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 org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<SingleNodeShutdownMetadata,Void>static org.elasticsearch.common.xcontent.ParseFieldstatic org.elasticsearch.common.xcontent.ParseFieldstatic Stringstatic org.elasticsearch.common.xcontent.ParseFieldFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(SingleNodeShutdownMetadata original)booleanlonggetType()inthashCode()static SingleNodeShutdownMetadataparse(org.elasticsearch.common.xcontent.XContentParser parser)org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.cluster.AbstractDiffable
diff, readDiffFromMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
NODE_ID_FIELD
public static final org.elasticsearch.common.xcontent.ParseField NODE_ID_FIELD -
TYPE_FIELD
public static final org.elasticsearch.common.xcontent.ParseField TYPE_FIELD -
REASON_FIELD
public static final org.elasticsearch.common.xcontent.ParseField REASON_FIELD -
STARTED_AT_READABLE_FIELD
- See Also:
- Constant Field Values
-
STARTED_AT_MILLIS_FIELD
public static final org.elasticsearch.common.xcontent.ParseField STARTED_AT_MILLIS_FIELD -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<SingleNodeShutdownMetadata,Void> PARSER
-
-
Constructor Details
-
SingleNodeShutdownMetadata
- Throws:
IOException
-
-
Method Details
-
parse
public static SingleNodeShutdownMetadata parse(org.elasticsearch.common.xcontent.XContentParser parser) -
getNodeId
- Returns:
- The ID of the node this
SingleNodeShutdownMetadataconcerns.
-
getType
- Returns:
- The type of shutdown this is (shutdown vs. permanent).
-
getReason
- Returns:
- The user-supplied reason this node is shutting down.
-
getStartedAtMillis
public long getStartedAtMillis()- Returns:
- The timestamp that this shutdown procedure was started.
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
builder
-
builder
-