Package nl.vpro.util.locker
Class ObjectLockerAdmin
java.lang.Object
nl.vpro.util.locker.ObjectLockerAdmin
- All Implemented Interfaces:
ObjectLockerAdminMXBean
- Since:
- 5.8
- Author:
- Michiel Meeuwissen
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.meeuw.math.windowed.WindowedStatisticalLong
org.meeuw.math.windowed.WindowedStatisticalLong
int
int
org.meeuw.math.windowed.WindowedEventRate
getLocks()
int
int
boolean
boolean
void
reset()
void
void
setMaxLockAcquireTime
(String duration) void
setMonitor
(boolean monitor) void
setStrictlyOne
(boolean strictlyOne) void
shutdown()
-
Field Details
-
JMX_INSTANCE
-
-
Method Details
-
resetMaxValues
public void resetMaxValues()- Specified by:
resetMaxValues
in interfaceObjectLockerAdminMXBean
-
reset
public void reset()- Specified by:
reset
in interfaceObjectLockerAdminMXBean
-
getLocks
- Specified by:
getLocks
in interfaceObjectLockerAdminMXBean
-
getLockCount
public int getLockCount()- Specified by:
getLockCount
in interfaceObjectLockerAdminMXBean
-
getLockCounts
- Specified by:
getLockCounts
in interfaceObjectLockerAdminMXBean
-
getCurrentCount
public int getCurrentCount()- Specified by:
getCurrentCount
in interfaceObjectLockerAdminMXBean
-
getCurrentCounts
- Specified by:
getCurrentCounts
in interfaceObjectLockerAdminMXBean
-
getMaxLockAcquireTime
- Specified by:
getMaxLockAcquireTime
in interfaceObjectLockerAdminMXBean
-
setMaxLockAcquireTime
- Specified by:
setMaxLockAcquireTime
in interfaceObjectLockerAdminMXBean
-
isMonitor
public boolean isMonitor()- Specified by:
isMonitor
in interfaceObjectLockerAdminMXBean
-
setMonitor
public void setMonitor(boolean monitor) - Specified by:
setMonitor
in interfaceObjectLockerAdminMXBean
-
isStrictlyOne
public boolean isStrictlyOne()- Specified by:
isStrictlyOne
in interfaceObjectLockerAdminMXBean
-
setStrictlyOne
public void setStrictlyOne(boolean strictlyOne) - Specified by:
setStrictlyOne
in interfaceObjectLockerAdminMXBean
-
shutdown
@PreDestroy public void shutdown() -
getAverageLockAcquireTime
public org.meeuw.math.windowed.WindowedStatisticalLong getAverageLockAcquireTime() -
getAverageLockDuration
public org.meeuw.math.windowed.WindowedStatisticalLong getAverageLockDuration() -
getLockRate
public org.meeuw.math.windowed.WindowedEventRate getLockRate() -
getMaxConcurrency
public int getMaxConcurrency()- Specified by:
getMaxConcurrency
in interfaceObjectLockerAdminMXBean
-
getMaxDepth
public int getMaxDepth()- Specified by:
getMaxDepth
in interfaceObjectLockerAdminMXBean
-