public static class HeartbeatFailureDetector.Stats extends Object
| Modifier and Type | Method and Description |
|---|---|
io.airlift.units.Duration |
getAge() |
Exception |
getLastFailureException() |
FailureInfo |
getLastFailureInfo() |
org.joda.time.DateTime |
getLastRequestTime() |
org.joda.time.DateTime |
getLastResponseTime() |
double |
getRecentFailureRatio() |
double |
getRecentFailures() |
Map<String,Double> |
getRecentFailuresByType() |
double |
getRecentRequests() |
double |
getRecentSuccesses() |
URI |
getUri() |
void |
recordFailure(Exception exception) |
void |
recordStart() |
void |
recordSuccess() |
public Stats(URI uri)
public void recordStart()
public void recordSuccess()
public void recordFailure(Exception exception)
public io.airlift.units.Duration getAge()
public URI getUri()
public double getRecentFailures()
public double getRecentSuccesses()
public double getRecentRequests()
public double getRecentFailureRatio()
public org.joda.time.DateTime getLastRequestTime()
public org.joda.time.DateTime getLastResponseTime()
public Exception getLastFailureException()
@Nullable public FailureInfo getLastFailureInfo()
Copyright © 2012–2019. All rights reserved.