Class SingleNodeShutdownMetadata

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

    • 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

      public static final  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<> PARSER
  • Constructor Details

    • SingleNodeShutdownMetadata

      public SingleNodeShutdownMetadata(StreamInput in) throws
      Throws:
  • Method Details

    • parse

      public static SingleNodeShutdownMetadata parse(org.elasticsearch.common.xcontent.XContentParser parser)
    • getNodeId

      public  getNodeId()
      Returns:
      The ID of the node this SingleNodeShutdownMetadata concerns.
    • getType

      Returns:
      The type of shutdown this is (shutdown vs. permanent).
    • getReason

      public  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

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • builder

      public static SingleNodeShutdownMetadata.Builder builder()
    • builder