com.alibaba.otter.canal.common.zookeeper.running.ServerRunningMonitors Maven / Gradle / Ivy
The newest version!
package com.alibaba.otter.canal.common.zookeeper.running;
import java.util.Map;
/**
* {@linkplain ServerRunningMonitor}管理容器,使用static进行数据全局共享
*
* @author jianghang 2012-12-3 下午09:32:06
* @version 1.0.0
*/
public class ServerRunningMonitors {
private static ServerRunningData serverData;
private static Map runningMonitors; //
public static ServerRunningData getServerData() {
return serverData;
}
public static Map getRunningMonitors() {
return runningMonitors;
}
public static ServerRunningMonitor getRunningMonitor(String destination) {
return (ServerRunningMonitor) runningMonitors.get(destination);
}
public static void setServerData(ServerRunningData serverData) {
ServerRunningMonitors.serverData = serverData;
}
public static void setRunningMonitors(Map runningMonitors) {
ServerRunningMonitors.runningMonitors = runningMonitors;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy