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 CallTrackerINSTANCE-
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.CallStatsgetCallStats()longgetCurrentCallCountTotal()intgetCurrentConcurrency()longgetCurrentErrorCountTotal()longgetCurrentStartCountTotal()long[]getErrorCount()int[]getErrorFrequency()longgetLastResetTime()int[]getMaxConcurrency()long[]getStartCount()int[]getStartFrequency()longgetTimeSinceLastStartCall()voidreset()CallCompletionstartCall(long startTimeNanos)voidtrackCall(long duration, java.util.concurrent.TimeUnit timeUnit)voidtrackCallWithError(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:
startCallin interfaceCallTracker
-
trackCall
public void trackCall(long duration, @Nonnull java.util.concurrent.TimeUnit timeUnit)- Specified by:
trackCallin interfaceCallTracker
-
trackCallWithError
public void trackCallWithError(long duration, @Nonnull java.util.concurrent.TimeUnit timeUnit, java.lang.Throwable throwable)- Specified by:
trackCallWithErrorin interfaceCallTracker
-
getCurrentStartCountTotal
public long getCurrentStartCountTotal()
- Specified by:
getCurrentStartCountTotalin interfaceCallTracker
-
getCurrentCallCountTotal
public long getCurrentCallCountTotal()
- Specified by:
getCurrentCallCountTotalin interfaceCallTracker
-
getCurrentErrorCountTotal
public long getCurrentErrorCountTotal()
- Specified by:
getCurrentErrorCountTotalin interfaceCallTracker
-
getCurrentConcurrency
public int getCurrentConcurrency()
- Specified by:
getCurrentConcurrencyin interfaceCallTracker
-
getAverageConcurrency
@Nonnull public double[] getAverageConcurrency()
- Specified by:
getAverageConcurrencyin interfaceCallTracker
-
getMaxConcurrency
@Nonnull public int[] getMaxConcurrency()
- Specified by:
getMaxConcurrencyin interfaceCallTracker
-
getStartFrequency
@Nonnull public int[] getStartFrequency()
- Specified by:
getStartFrequencyin interfaceCallTracker
-
getStartCount
@Nonnull public long[] getStartCount()
- Specified by:
getStartCountin interfaceCallTracker
-
getErrorFrequency
@Nonnull public int[] getErrorFrequency()
- Specified by:
getErrorFrequencyin interfaceCallTracker
-
getErrorCount
@Nonnull public long[] getErrorCount()
- Specified by:
getErrorCountin interfaceCallTracker
-
getCallStats
@Nonnull public CallTracker.CallStats getCallStats()
- Specified by:
getCallStatsin interfaceCallTracker
-
reset
public void reset()
- Specified by:
resetin interfaceCallTracker
-
getLastResetTime
public long getLastResetTime()
- Specified by:
getLastResetTimein interfaceCallTracker
-
getTimeSinceLastStartCall
public long getTimeSinceLastStartCall()
- Specified by:
getTimeSinceLastStartCallin interfaceCallTracker
-
-