Package com.yahoo.vespa.curator.stats
Class ThreadLockStats
java.lang.Object
com.yahoo.vespa.curator.stats.ThreadLockStats
This class manages thread-specific statistics and information related to acquiring and releasing
Lock
. Instances of this class contain information tied to a specific thread and lock path.
Instances of this class are thread-safe as long as foreign threads (!= this.thread) avoid mutable methods.
- Author:
- hakon
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Mutable method (see class doc)void
Mutable method (see class doc)The most recent and deeply nested ongoing lock attempt.void
invokingAcquire
(String lockPath, Duration timeout) Mutable method (see class doc)void
Mutable method (see class doc)void
postRelease
(String lockPath) Mutable method (see class doc)void
preRelease
(String path) Mutable method (see class doc)void
releaseFailed
(String lockPath) Mutable method (see class doc)void
startRecording
(String recordId) Mutable method (see class doc)void
Mutable method (see class doc)
-
Method Details
-
getThreadName
-
getStackTrace
-
getOngoingLockAttempts
-
getTopMostOngoingLockAttempt
-
getBottomMostOngoingLockAttempt
The most recent and deeply nested ongoing lock attempt. -
getOngoingRecording
-
invokingAcquire
Mutable method (see class doc) -
acquireFailed
public void acquireFailed()Mutable method (see class doc) -
acquireTimedOut
public void acquireTimedOut()Mutable method (see class doc) -
lockAcquired
public void lockAcquired()Mutable method (see class doc) -
preRelease
Mutable method (see class doc) -
postRelease
Mutable method (see class doc) -
releaseFailed
Mutable method (see class doc) -
startRecording
Mutable method (see class doc) -
stopRecording
public void stopRecording()Mutable method (see class doc)
-