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.
  • Field Details

    • PARSER

      public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<SingleNodeShutdownMetadata,​java.lang.Void> PARSER
  • Constructor Details

    • SingleNodeShutdownMetadata

      public SingleNodeShutdownMetadata​(StreamInput in) throws java.io.IOException
      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

      public NodeShutdownComponentStatus getShardMigrationStatus()
      Returns:
      The status of shard migrations off of this node.
    • getPersistentTasksStatus

      public NodeShutdownComponentStatus getPersistentTasksStatus()
      Returns:
      The status of persistent task shutdown on this node.
    • getPluginsStatus

      public NodeShutdownComponentStatus getPluginsStatus()
      Returns:
      The status of plugin shutdown on this node.
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • 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 interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • builder

      public static SingleNodeShutdownMetadata.Builder builder()
    • builder