Caucho.ResinConf.IsDynamicServerEnabled C# (CSharp) Method

IsDynamicServerEnabled() public method

public IsDynamicServerEnabled ( String cluster ) : bool
cluster String
return bool
        public bool IsDynamicServerEnabled(String cluster)
        {
            XPathNavigator navigator = _docNavigator.SelectSingleNode("caucho:resin/caucho:cluster[@id='" + cluster + "']", _xmlnsMgr);

              if (navigator != null && navigator.MoveToFirstChild()) {
            if ("ElasticCloudService".Equals(navigator.LocalName))
              return true;

            while (navigator.MoveToFollowing(XPathNodeType.Element))
              if ("ElasticCloudService".Equals(navigator.LocalName))
            return true;
              }

              navigator = _docNavigator.SelectSingleNode("caucho:resin/caucho:cluster-default", _xmlnsMgr);

              if (navigator != null && navigator.MoveToFirstChild()) {
            if ("ElasticCloudService".Equals(navigator.LocalName))
              return true;

            while (navigator.MoveToFollowing(XPathNodeType.Element))
              if ("ElasticCloudService".Equals(navigator.LocalName))
            return true;
              }

              Hashtable properties = getProperties();

              if (properties != null && "true".Equals((String)properties["elastic_cloud_enable"], StringComparison.CurrentCultureIgnoreCase))
            return true;

              return false;
        }