Package org.elasticsearch.discovery.zen
Class ZenPing.PingCollection
java.lang.Object
org.elasticsearch.discovery.zen.ZenPing.PingCollection
- Enclosing interface:
- ZenPing
public static class ZenPing.PingCollection
extends java.lang.Object
a utility collection of pings where only the most recent ping is stored per node
-
Constructor Summary
Constructors Constructor Description PingCollection()
-
Method Summary
Modifier and Type Method Description boolean
addPing(ZenPing.PingResponse ping)
adds a ping if newer than previous pings from the same nodeint
size()
the number of nodes for which there are known pingsjava.util.List<ZenPing.PingResponse>
toList()
serialize current pings to a list.
-
Constructor Details
-
PingCollection
public PingCollection()
-
-
Method Details