Package net.i2p.router.web
Class DeadlockDetector
- java.lang.Object
-
- net.i2p.util.SimpleTimer2.TimedEvent
-
- net.i2p.router.web.DeadlockDetector
-
- All Implemented Interfaces:
Runnable
public class DeadlockDetector extends SimpleTimer2.TimedEvent
Periodic check ref: https://dzone.com/articles/how-detect-java-deadlocks In routerconsole because java.lang.management is not available in Android.- Since:
- 0.9.55, public since 0.9.56
-
-
Field Summary
-
Fields inherited from class net.i2p.util.SimpleTimer2.TimedEvent
_state, DEFAULT_FUZZ
-
-
Constructor Summary
Constructors Constructor Description DeadlockDetector(RouterContext ctx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
detect(RouterContext ctx)
static boolean
isDeadlocked()
Return the results of the last test.void
timeReached()
Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)-
Methods inherited from class net.i2p.util.SimpleTimer2.TimedEvent
cancel, forceReschedule, reschedule, reschedule, run, schedule, setFuzz, toString
-
-
-
-
Constructor Detail
-
DeadlockDetector
public DeadlockDetector(RouterContext ctx)
-
-
Method Detail
-
timeReached
public void timeReached()
Description copied from class:SimpleTimer2.TimedEvent
Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)- Specified by:
timeReached
in classSimpleTimer2.TimedEvent
-
detect
public static boolean detect(RouterContext ctx)
-
isDeadlocked
public static boolean isDeadlocked()
Return the results of the last test. Does not run a new test.- Since:
- 0.9.56
-
-