Example #1
0
		public NodeWatcher(DisconfCoreProcessor disconfCoreMgr, string monitorPath, string keyName, DisConfigTypeEnum disConfigTypeEnum, DisconfSysUpdateCallback disconfSysUpdateCallback, bool debug) : base()
		{

			this.debug = debug;
			this.disconfCoreMgr = disconfCoreMgr;
			this.monitorPath = monitorPath;
			this.keyName = keyName;
			this.disConfigTypeEnum = disConfigTypeEnum;
			this.disconfSysUpdateCallback = disconfSysUpdateCallback;
		}
Example #2
0
		/// <summary>
		/// 监控路径,监控前会事先创建路径,并且会新建一个自己的Temp子结点
		/// </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void watchPath(com.baidu.disconf.client.core.processor.DisconfCoreProcessor disconfCoreMgr, com.baidu.disconf.client.common.model.DisConfCommonModel disConfCommonModel, String keyName, com.baidu.disconf.core.common.constants.DisConfigTypeEnum disConfigTypeEnum, String value) throws Exception
		public virtual void watchPath(DisconfCoreProcessor disconfCoreMgr, DisConfCommonModel disConfCommonModel, string keyName, DisConfigTypeEnum disConfigTypeEnum, string value)
		{

			// 新建
			string monitorPath = makeMonitorPath(disConfigTypeEnum, disConfCommonModel, keyName, value);

			// 进行监控
			NodeWatcher nodeWatcher = new NodeWatcher(disconfCoreMgr, monitorPath, keyName, disConfigTypeEnum, new DisconfSysUpdateCallback(), debug);
			nodeWatcher.monitorMaster();
		}