Class CoordinationMetadata.VotingConfiguration

org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment
Enclosing class:
CoordinationMetadata

public static class CoordinationMetadata.VotingConfiguration extends implements Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
A collection of persistent node ids, denoting the voting configuration for cluster state changes.
  • Field Details

  • Constructor Details

    • VotingConfiguration

      public VotingConfiguration(<> nodeIds)
    • VotingConfiguration

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

    • writeTo

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

      public boolean hasQuorum(<> votes)
    • getNodeIds

      public <> getNodeIds()
    • toString

      public  toString()
      Overrides:
       in class 
    • equals

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

      public int hashCode()
      Overrides:
       in class 
    • isEmpty

      public boolean isEmpty()
    • 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:
    • of