|
RuneHive-Game
|
Public Member Functions | |
| void | requestExit () |
| void | run () |
| TaskDeadlockWatcher (TaskManager taskManager) | |
Private Attributes | |
| final HashMap< String, Task > | _alreadyAlertedTaskMap = new HashMap<>() |
| A map of tasks that have already alerted us to a deadlock, we don't want to spam the logs. | |
| boolean | exitRequested |
| final TaskManager | taskManager |
Static Private Attributes | |
| static final long | DEADLOCK_WATCHER_SLEEP_MS = 1000 |
| static final Logger | logger = LogManager.getLogger(TaskDeadlockWatcher.class) |
| static final long | TASK_TOO_LONG_MS = 1000 |
Definition at line 10 of file TaskDeadlockWatcher.java.
| com.runehive.game.task.TaskDeadlockWatcher.TaskDeadlockWatcher | ( | TaskManager | taskManager | ) |
Definition at line 22 of file TaskDeadlockWatcher.java.
References taskManager.
| void com.runehive.game.task.TaskDeadlockWatcher.requestExit | ( | ) |
Definition at line 26 of file TaskDeadlockWatcher.java.
References exitRequested, and logger.
| void com.runehive.game.task.TaskDeadlockWatcher.run | ( | ) |
Definition at line 33 of file TaskDeadlockWatcher.java.
References _alreadyAlertedTaskMap, DEADLOCK_WATCHER_SLEEP_MS, exitRequested, com.runehive.game.task.Task.getTaskCreationTime(), logger, TASK_TOO_LONG_MS, and taskManager.
|
private |
A map of tasks that have already alerted us to a deadlock, we don't want to spam the logs.
Definition at line 20 of file TaskDeadlockWatcher.java.
Referenced by run().
|
staticprivate |
Definition at line 13 of file TaskDeadlockWatcher.java.
Referenced by run().
|
private |
Definition at line 11 of file TaskDeadlockWatcher.java.
Referenced by requestExit(), and run().
|
staticprivate |
Definition at line 15 of file TaskDeadlockWatcher.java.
Referenced by requestExit(), and run().
|
staticprivate |
Definition at line 14 of file TaskDeadlockWatcher.java.
Referenced by run().
|
private |
Definition at line 12 of file TaskDeadlockWatcher.java.
Referenced by run(), and TaskDeadlockWatcher().