Package com.yahoo.prelude
Class Pong
java.lang.Object
com.yahoo.prelude.Pong
An answer from Ping.
- Author:
- bratseth
-
Constructor Summary
ConstructorDescriptionPong()
Pong
(long activeDocuments, long targetActiveDocuments) Pong
(long activeDocuments, long targetActiveDocuments, boolean isBlockingWrites) Pong
(ErrorMessage error) -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of active documents in the backend responding in this Pong, if availableboolean
Returns whether there is an error or noterror()
boolean
Returns true if the pinged node is currently blocking write operations due to being fullReturns the number of target active documents in the backend responding in this Pong, if availabletoString()
Returns a string which included the ping info (if any) and any errors added to this
-
Constructor Details
-
Pong
public Pong() -
Pong
-
Pong
public Pong(long activeDocuments, long targetActiveDocuments) -
Pong
public Pong(long activeDocuments, long targetActiveDocuments, boolean isBlockingWrites)
-
-
Method Details
-
error
-
activeDocuments
Returns the number of active documents in the backend responding in this Pong, if available -
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
-
toString
Returns a string which included the ping info (if any) and any errors added to this
-