Class ZenPing.PingResponse

java.lang.Object
org.elasticsearch.discovery.zen.ZenPing.PingResponse
All Implemented Interfaces:
Writeable
Enclosing interface:
ZenPing

public static class ZenPing.PingResponse
extends java.lang.Object
implements Writeable
  • Field Details

    • FAKE_PING_ID

      public static long FAKE_PING_ID
      An ID of a ping response that was generated on behalf of another node. Needs to be less than all other ping IDs so that fake ping responses don't override real ones.
  • Constructor Details

  • 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
      Throws:
      java.io.IOException
    • id

      public long id()
      an always increasing unique identifier for this ping response. lower values means older pings.
    • clusterName

      public ClusterName clusterName()
      the name of the cluster this node belongs to
    • node

      public DiscoveryNode node()
      the node which this ping describes
    • master

      public DiscoveryNode master()
      the current master of the node
    • getClusterStateVersion

      public long getClusterStateVersion()
      the current cluster state version of that node (ElectMasterService.MasterCandidate.UNRECOVERED_CLUSTER_VERSION for not recovered)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object