java.lang.Object
org.rrd4j.core.RrdSafeFileBackend.Counters
- Enclosing class:
RrdSafeFileBackend
Internal counters for tracking file locking operations.
This class maintains statistics about file locking operations including total locks, quick locks, unlocks, currently locked files, and errors. These counters are used for monitoring and debugging the file locking behavior.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final AtomicLongError count(package private) final AtomicLongLocked count(package private) final AtomicLongLock count(package private) final AtomicLongQuick lock count(package private) final AtomicLongUnlock countConstructor Summary
ConstructorsConstructorDescriptionCounters()All five counters start at zero and are raised only by the register methods below, so a fresh set describes an idle backend.Method Summary
All MethodsModifier and TypeMethodDescription(package private) StringgetInfo()Gets formatted information about the counters.(package private) voidRegisters a delayed lock operation.(package private) voidRegisters an error operation.(package private) voidRegisters a quick lock operation.(package private) voidRegisters an unlock operation.
Field Details
locks
Lock countquickLocks
Quick lock countunlocks
Unlock countlocked
Locked counterrors
Error count
Constructor Details
Counters
Counters()All five counters start at zero and are raised only by the register methods below, so a fresh set describes an idle backend.
Method Details
registerQuickLock
void registerQuickLock()Registers a quick lock operation.registerDelayedLock
void registerDelayedLock()Registers a delayed lock operation.registerUnlock
void registerUnlock()Registers an unlock operation.registerError
void registerError()Registers an error operation.getInfo
String getInfo()Gets formatted information about the counters.- Returns:
- a formatted string with counter statistics