19 using System.Configuration;
22 namespace Lucene.Net.Distributed.Configuration
62 XmlAttributeCollection attributeCollection = xSection.Attributes;
66 this._intPort = Convert.ToInt32(attributeCollection[
"Port"].Value);
70 throw new ConfigurationErrorsException(
"LuceneServerIndexes port definition invalid: "+Environment.NewLine+xSection.OuterXml);
73 if (xSection.ChildNodes.Count==0)
74 throw new ConfigurationErrorsException(
"LuceneServerIndexes configuration missing: " + Environment.NewLine + xSection.OuterXml);
76 this._arLuceneServerIndexArray =
new LuceneServerIndex[xSection.ChildNodes.Count];
79 foreach (XmlNode c
in xSection.ChildNodes)
81 if (c.Name.ToLower()==
"luceneserverindex")
84 this._arLuceneServerIndexArray[x] = rs;
97 get {
return this._arLuceneServerIndexArray;}
106 get {
return this._intPort;}