Class NullCallTracker
- java.lang.Object
-
- com.linkedin.alpini.base.monitoring.NullCallTracker
-
- All Implemented Interfaces:
CallTracker
public final class NullCallTracker extends java.lang.Object implements CallTracker
Created by acurtis on 3/30/17.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.linkedin.alpini.base.monitoring.CallTracker
CallTracker.CallStats
-
-
Field Summary
Fields Modifier and Type Field Description static CallTracker
INSTANCE
-
Fields inherited from interface com.linkedin.alpini.base.monitoring.CallTracker
GENERIC_EXCEPTION
-
-
Constructor Summary
Constructors Constructor Description NullCallTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
getAverageConcurrency()
CallTracker.CallStats
getCallStats()
long
getCurrentCallCountTotal()
int
getCurrentConcurrency()
long
getCurrentErrorCountTotal()
long
getCurrentStartCountTotal()
long[]
getErrorCount()
int[]
getErrorFrequency()
long
getLastResetTime()
int[]
getMaxConcurrency()
long[]
getStartCount()
int[]
getStartFrequency()
long
getTimeSinceLastStartCall()
void
reset()
CallCompletion
startCall(long startTimeNanos)
void
trackCall(long duration, java.util.concurrent.TimeUnit timeUnit)
void
trackCallWithError(long duration, java.util.concurrent.TimeUnit timeUnit, java.lang.Throwable throwable)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.linkedin.alpini.base.monitoring.CallTracker
startCall, trackCall, trackCallWithError, trackCallWithError, trackCallWithError
-
-
-
-
Field Detail
-
INSTANCE
public static final CallTracker INSTANCE
-
-
Method Detail
-
startCall
@Nonnull public CallCompletion startCall(@Nonnegative long startTimeNanos)
- Specified by:
startCall
in interfaceCallTracker
-
trackCall
public void trackCall(long duration, @Nonnull java.util.concurrent.TimeUnit timeUnit)
- Specified by:
trackCall
in interfaceCallTracker
-
trackCallWithError
public void trackCallWithError(long duration, @Nonnull java.util.concurrent.TimeUnit timeUnit, java.lang.Throwable throwable)
- Specified by:
trackCallWithError
in interfaceCallTracker
-
getCurrentStartCountTotal
public long getCurrentStartCountTotal()
- Specified by:
getCurrentStartCountTotal
in interfaceCallTracker
-
getCurrentCallCountTotal
public long getCurrentCallCountTotal()
- Specified by:
getCurrentCallCountTotal
in interfaceCallTracker
-
getCurrentErrorCountTotal
public long getCurrentErrorCountTotal()
- Specified by:
getCurrentErrorCountTotal
in interfaceCallTracker
-
getCurrentConcurrency
public int getCurrentConcurrency()
- Specified by:
getCurrentConcurrency
in interfaceCallTracker
-
getAverageConcurrency
@Nonnull public double[] getAverageConcurrency()
- Specified by:
getAverageConcurrency
in interfaceCallTracker
-
getMaxConcurrency
@Nonnull public int[] getMaxConcurrency()
- Specified by:
getMaxConcurrency
in interfaceCallTracker
-
getStartFrequency
@Nonnull public int[] getStartFrequency()
- Specified by:
getStartFrequency
in interfaceCallTracker
-
getStartCount
@Nonnull public long[] getStartCount()
- Specified by:
getStartCount
in interfaceCallTracker
-
getErrorFrequency
@Nonnull public int[] getErrorFrequency()
- Specified by:
getErrorFrequency
in interfaceCallTracker
-
getErrorCount
@Nonnull public long[] getErrorCount()
- Specified by:
getErrorCount
in interfaceCallTracker
-
getCallStats
@Nonnull public CallTracker.CallStats getCallStats()
- Specified by:
getCallStats
in interfaceCallTracker
-
reset
public void reset()
- Specified by:
reset
in interfaceCallTracker
-
getLastResetTime
public long getLastResetTime()
- Specified by:
getLastResetTime
in interfaceCallTracker
-
getTimeSinceLastStartCall
public long getTimeSinceLastStartCall()
- Specified by:
getTimeSinceLastStartCall
in interfaceCallTracker
-
-