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 Classes Modifier and Type Class Description static class
SingleNodeShutdownMetadata.Builder
static class
SingleNodeShutdownMetadata.Status
Describes the status of a component of shutdown.static class
SingleNodeShutdownMetadata.Type
Describes 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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.xcontent.ConstructingObjectParser<SingleNodeShutdownMetadata,java.lang.Void>
PARSER
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Constructor Description SingleNodeShutdownMetadata(StreamInput in)
-
Method Summary
Modifier and Type Method Description static SingleNodeShutdownMetadata.Builder
builder()
static SingleNodeShutdownMetadata.Builder
builder(SingleNodeShutdownMetadata original)
boolean
equals(java.lang.Object o)
java.lang.String
getNodeId()
NodeShutdownComponentStatus
getPersistentTasksStatus()
NodeShutdownComponentStatus
getPluginsStatus()
java.lang.String
getReason()
NodeShutdownComponentStatus
getShardMigrationStatus()
long
getStartedAtMillis()
SingleNodeShutdownMetadata.Status
getStatus()
SingleNodeShutdownMetadata.Type
getType()
int
hashCode()
static SingleNodeShutdownMetadata
parse(org.elasticsearch.common.xcontent.XContentParser parser)
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.cluster.AbstractDiffable
diff, readDiffFrom
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<SingleNodeShutdownMetadata,java.lang.Void> PARSER
-
-
Constructor Details
-
SingleNodeShutdownMetadata
- Throws:
java.io.IOException
-
-
Method Details
-
parse
public static SingleNodeShutdownMetadata parse(org.elasticsearch.common.xcontent.XContentParser parser) -
getNodeId
public java.lang.String getNodeId()- Returns:
- The ID of the node this
SingleNodeShutdownMetadata
concerns.
-
getType
- Returns:
- The type of shutdown this is (shutdown vs. permanent).
-
getReason
public java.lang.String getReason()- Returns:
- The user-supplied reason this node is shutting down.
-
getStatus
- Returns:
- The status of this node's shutdown.
-
getStartedAtMillis
public long getStartedAtMillis()- Returns:
- The timestamp that this shutdown procedure was started.
-
getShardMigrationStatus
- Returns:
- The status of shard migrations off of this node.
-
getPersistentTasksStatus
- Returns:
- The status of persistent task shutdown on this node.
-
getPluginsStatus
- Returns:
- The status of plugin shutdown on this node.
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
builder
-
builder
-