All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Alachisoft.NCache.Common.Logger.BridgeActivityMonitor Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
/*
 * 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);
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy