Exemple #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public UpdateNode(String hosts) throws java.io.IOException, InterruptedException
		public UpdateNode(string hosts)
		{
			store = new ResilientActiveKeyValueStore(true);
			store.connect(hosts);
		}
Exemple #2
0
		/// <returns> void
		/// </returns>
		/// <exception cref="IOException"> </exception>
		/// <exception cref="InterruptedException">
		/// @Description: 初始化
		/// @author liaoqiqi
		/// @date 2013-6-14 </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: private void initInternal(String hosts, String defaultPrefixString, boolean debug) throws java.io.IOException, InterruptedException
		private void initInternal(string hosts, string defaultPrefixString, bool debug)
		{

			curHost = hosts;
			curDefaultPrefixString = defaultPrefixString;

			store = new ResilientActiveKeyValueStore(debug);
			store.connect(hosts);

			LOGGER.info("zoo prefix: " + defaultPrefixString);

			// 新建父目录
			makeDir(defaultPrefixString, ZooUtils.Ip);
		}