Alachisoft.NCache.Common.Logger.BridgeActivityMonitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Alachisoft.NCache.Common.Logger;
public final class BridgeActivityMonitor {
private static java.util.HashMap _bridgeActivityMonitor = new java.util.HashMap();
public static BridgeActivityMonitorHandler getBridgeMonitor(String monitorName) {
BridgeActivityMonitorHandler bridge_Monitor = null;
synchronized (_bridgeActivityMonitor) {
if (_bridgeActivityMonitor.containsKey(monitorName)) {
bridge_Monitor = _bridgeActivityMonitor.get(monitorName);
} else {
bridge_Monitor = new BridgeActivityMonitorHandler();
bridge_Monitor.setMonitorName(monitorName);
bridge_Monitor.StartActivity();
_bridgeActivityMonitor.put(monitorName, bridge_Monitor);
}
}
return bridge_Monitor;
}
public static void RemoveMonitor(String monitorName) {
_bridgeActivityMonitor.remove(monitorName);
}
}