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,IMonitor> |
getMonitorMap() |
java.util.Map<IMonitor,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(IMonitor monitor)
Remove references to the given
Monitor object and stop the background monitoring
thread. |
void |
resetResource(IMonitor 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,IMonitor> getMonitorMap()
public java.util.Map<IMonitor,java.util.concurrent.Future<?>> getTasksMap()
public java.util.concurrent.ExecutorService getThreadPool()
public void resetResource(IMonitor monitor)
monitor
- The monitor to reset.