Class StartJoinRequest

java.lang.Object
All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, TaskAwareRequest

public class StartJoinRequest
extends TransportRequest
Represents the action of requesting a join vote (see Join) from a node. The source node represents the node that is asking for join votes.
  • Constructor Details

    • StartJoinRequest

      public StartJoinRequest​(DiscoveryNode sourceNode, long term)
    • StartJoinRequest

      public StartJoinRequest​(StreamInput input) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • 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
      Overrides:
      writeTo in class TransportRequest
      Throws:
      java.io.IOException
    • getSourceNode

      public DiscoveryNode getSourceNode()
    • getTerm

      public long getTerm()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • 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