Package com.yahoo.vespa.curator.stats
Class LockStats
- java.lang.Object
-
- com.yahoo.vespa.curator.stats.LockStats
-
public class LockStats extends java.lang.Object
This class manages statistics related to lock attempts onLock
.- Author:
- hakon
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clearForTesting()
static ThreadLockStats
getForCurrentThread()
Returns stats tied to the current thread.static LockStats
getGlobal()
Returns global stats.java.util.List<RecordedLockAttempts>
getHistoricRecordings()
java.util.List<LockAttempt>
getLockAttemptSamples()
java.util.Map<java.lang.String,LockMetrics>
getLockMetricsByPath()
java.util.List<ThreadLockStats>
getThreadLockStats()
-
-
-
Method Detail
-
getGlobal
public static LockStats getGlobal()
Returns global stats.
-
getForCurrentThread
public static ThreadLockStats getForCurrentThread()
Returns stats tied to the current thread.
-
clearForTesting
public static void clearForTesting()
-
getLockMetricsByPath
public java.util.Map<java.lang.String,LockMetrics> getLockMetricsByPath()
-
getThreadLockStats
public java.util.List<ThreadLockStats> getThreadLockStats()
-
getLockAttemptSamples
public java.util.List<LockAttempt> getLockAttemptSamples()
-
getHistoricRecordings
public java.util.List<RecordedLockAttempts> getHistoricRecordings()
-
-