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) Pong
(long activeDocuments, boolean isBlockingWrites) Pong
(ErrorMessage error) -
Method Summary
Modifier and TypeMethodDescriptionReturns the number of active documents in the backend responding in this Pong, if availableDeprecated.do not use.void
addError
(ErrorMessage error) Deprecated.do not use.boolean
Returns whether there is an error or noterror()
getError
(int i) Deprecated.use error() insteadDeprecated.use error() insteadboolean
Returns true if the pinged node is currently blocking write operations due to being fulltoString()
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) -
Pong
public Pong(long activeDocuments, boolean isBlockingWrites)
-
-
Method Details
-
addError
Deprecated.do not use. Additional errors are ignored. -
getError
Deprecated.use error() instead -
error
-
activeDocuments
Returns the number of 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 -
activeNodes
Deprecated.do not use. There is always one pong per node.Returns Optional.empty()- Returns:
- empty
-
getErrors
Deprecated.use error() insteadReturns a list containing 0 or 1 errors -
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
-