Class Pong

java.lang.Object
com.yahoo.prelude.Pong

public class Pong extends Object
An answer from Ping.
Author:
bratseth
  • Constructor Details

    • Pong

      public Pong()
    • Pong

      public Pong(ErrorMessage error)
    • Pong

      public Pong(long activeDocuments, long targetActiveDocuments)
    • Pong

      public Pong(long activeDocuments, long targetActiveDocuments, boolean isBlockingWrites)
  • Method Details

    • error

      public Optional<ErrorMessage> error()
    • activeDocuments

      public Optional<Long> activeDocuments()
      Returns the number of active documents in the backend responding in this Pong, if available
    • targetActiveDocuments

      public Optional<Long> targetActiveDocuments()
      Returns the number of target active documents in the backend responding in this Pong, if available
    • isBlockingWrites

      public boolean isBlockingWrites()
      Returns true if the pinged node is currently blocking write operations due to being full
    • badResponse

      public boolean badResponse()
      Returns whether there is an error or not
    • getElapsedTime

      public ElapsedTime getElapsedTime()
    • toString

      public String toString()
      Returns a string which included the ping info (if any) and any errors added to this
      Overrides:
      toString in class Object