public class MonitorThreadContainer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static MonitorThreadContainer |
getInstance()
Create an instance of the
MonitorThreadContainer. |
java.util.Map<java.lang.String,Monitor> |
getMonitorMap() |
java.util.Map<Monitor,java.util.concurrent.Future<?>> |
getTasksMap() |
java.util.concurrent.ExecutorService |
getThreadPool() |
static void |
releaseInstance()
Release resources held in the
MonitorThreadContainer and clear references to the
container. |
void |
releaseResource(Monitor monitor)
Remove references to the given
MonitorImpl object and stop the background monitoring
thread. |
void |
resetResource(Monitor monitor)
Clear all references used by the given monitor.
|
public static MonitorThreadContainer getInstance()
MonitorThreadContainer.MonitorThreadContainer.public static void releaseInstance()
MonitorThreadContainer and clear references to the
container.public java.util.Map<java.lang.String,Monitor> getMonitorMap()
public java.util.Map<Monitor,java.util.concurrent.Future<?>> getTasksMap()
public java.util.concurrent.ExecutorService getThreadPool()
public void resetResource(Monitor monitor)
monitor - The monitor to reset.public void releaseResource(Monitor monitor)
MonitorImpl object and stop the background monitoring
thread.monitor - The MonitorImpl representing a monitoring thread.