Exemple #1
0
		/// <exception cref="Exception"> </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static DisconfCoreMgr getDisconfCoreMgr(com.baidu.disconf.client.support.registry.Registry registry) throws Exception
		public static DisconfCoreMgr getDisconfCoreMgr(Registry registry)
		{

			FetcherMgr fetcherMgr = FetcherFactory.FetcherMgr;

			//
			// 不开启disconf,则不要watch了
			//
			WatchMgr watchMgr = null;
			if (DisClientConfig.Instance.ENABLE_DISCONF)
			{
				// Watch 模块
				watchMgr = WatchFactory.getWatchMgr(fetcherMgr);
			}

			return new DisconfCoreMgrImpl(watchMgr, fetcherMgr, registry);
		}
Exemple #2
0
		/// <summary>
		/// 获取配置项核心 处理器
		/// </summary>
		public static DisconfCoreProcessor getDisconfCoreProcessorItem(WatchMgr watchMgr, FetcherMgr fetcherMgr, Registry registry)
		{

			return new DisconfItemCoreProcessorImpl(watchMgr, fetcherMgr, registry);
		}
Exemple #3
0
		/// <exception cref="Exception"> </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static ScanMgr getScanMgr(com.baidu.disconf.client.support.registry.Registry registry) throws Exception
		public static ScanMgr getScanMgr(Registry registry)
		{

			ScanMgr scanMgr = new ScanMgrImpl(registry);
			return scanMgr;
		}