Class NodeShutdownComponentStatus

java.lang.Object
org.elasticsearch.cluster.AbstractDiffable<NodeShutdownComponentStatus>
org.elasticsearch.cluster.metadata.NodeShutdownComponentStatus
All Implemented Interfaces:
Diffable<NodeShutdownComponentStatus>, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public class NodeShutdownComponentStatus
extends AbstractDiffable<NodeShutdownComponentStatus>
implements org.elasticsearch.common.xcontent.ToXContentFragment
Contains information about the status of a single component (e.g. `shard_migration`, `persistent_tasks`) of the node shutdown process.
  • Constructor Details

    • NodeShutdownComponentStatus

      public NodeShutdownComponentStatus()
    • NodeShutdownComponentStatus

      public NodeShutdownComponentStatus​(SingleNodeShutdownMetadata.Status status, @Nullable java.lang.Long startedAtMillis, @Nullable java.lang.String errorMessage)
    • NodeShutdownComponentStatus

      public NodeShutdownComponentStatus​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • parse

      public static NodeShutdownComponentStatus parse​(org.elasticsearch.common.xcontent.XContentParser parser)
    • getStatus

      Returns:
      The overall status of this component.
    • getStartedAtMillis

      @Nullable public java.lang.Long getStartedAtMillis()
      Returns:
      The timestamp this component started shutting down. Null if the component has not yet started shutting down.
    • getErrorMessage

      @Nullable public java.lang.String getErrorMessage()
      Returns:
      The error message this component encountered while trying to shut down, if any. Null if no errors have been encountered.
    • 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
    • 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
    • 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