Package nl.vpro.domain.media
Interface MediaObjectLockerAdminMXBean
-
public interface MediaObjectLockerAdminMXBean
- Since:
- 5.8
- Author:
- Michiel Meeuwissen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
clearMidLock(String mid, boolean interrupt)
String
clearMidLocks(boolean interrupt)
int
getCurrentCount()
Map<String,Integer>
getCurrentCounts()
int
getLockCount()
Map<String,Integer>
getLockCounts()
Set<String>
getLocks()
int
getMaxConcurrency()
int
getMaxDepth()
String
getMaxLockAcquireTime()
boolean
isMonitor()
String
lockMid(String mid, String duration)
void
setMaxLockAcquireTime(String duration)
void
setMonitor(boolean monitor)
-
-
-
Method Detail
-
getLocks
@Description("The mids currently locked") Set<String> getLocks()
-
getLockCount
@Description("The total number of acquired locks. So this grows continuously.") int getLockCount()
-
getLockCounts
@Description("The total number of acquired locks per \'reason\'. So this grows continuously.") Map<String,Integer> getLockCounts()
-
getCurrentCount
@Description("The current number of locks. Should be a low number, most of the time zero.") int getCurrentCount()
-
getCurrentCounts
@Description("The total number of acquired locks per reason. So this grows continuously.") Map<String,Integer> getCurrentCounts()
-
getMaxConcurrency
@Description("The maximum concurrency level reached since the start of the application. I.e. the number of threads trying to acces the same lock simultaneously") int getMaxConcurrency()
-
getMaxDepth
@Description("The maximum depth reach. I.e. the maximum number of \'nested\' code locking the same mid.") int getMaxDepth()
-
clearMidLock
@Description("Explicitly clear a lock on some mid") String clearMidLock(@Name("mid") String mid, boolean interrupt)
-
lockMid
@Description("Explicitly lock a mid for a certain period. This simulates long processes, and can be used to assess such a situation") String lockMid(@Description("The mid to lock") @Name("mid") String mid, @Description("How long") @Name("duration") String duration)
-
clearMidLocks
String clearMidLocks(boolean interrupt)
-
getMaxLockAcquireTime
@Description("If locks are monitoring, this the time a process needs to wait for a lock at most") String getMaxLockAcquireTime()
-
setMaxLockAcquireTime
void setMaxLockAcquireTime(String duration)
-
isMonitor
@Description("Whether locks are monitored currently. If they are, processes waiting for a lock for too long, are continuing without one.") boolean isMonitor()
-
setMonitor
void setMonitor(boolean monitor)
-
-