Package com.netflix.discovery
Class DiscoveryClient.Stats
- java.lang.Object
-
- com.netflix.discovery.DiscoveryClient.Stats
-
- Enclosing class:
- DiscoveryClient
public class DiscoveryClient.Stats extends java.lang.ObjectStats is used to track useful attributes of the DiscoveryClient. It includes helpers that can aid debugging and log analysis.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intinitLocalRegistrySize()booleaninitSucceeded()Used to determine if the Discovery client's first attempt to fetch from the service registry succeeded with non-empty results.longinitTimestampMs()longlastSuccessfulHeartbeatTimestampMs()longlastSuccessfulRegistryFetchTimestampMs()intlocalRegistrySize()
-
-
-
Method Detail
-
initLocalRegistrySize
public int initLocalRegistrySize()
-
initTimestampMs
public long initTimestampMs()
-
localRegistrySize
public int localRegistrySize()
-
lastSuccessfulRegistryFetchTimestampMs
public long lastSuccessfulRegistryFetchTimestampMs()
-
lastSuccessfulHeartbeatTimestampMs
public long lastSuccessfulHeartbeatTimestampMs()
-
initSucceeded
public boolean initSucceeded()
Used to determine if the Discovery client's first attempt to fetch from the service registry succeeded with non-empty results.- Returns:
- true if succeeded, failed otherwise
-
-