Ejemplo n.º 1
0
		public ESNode(string ip,int port,bool framed=false)
		{
			Host = ip;
			Port = port;
			Enabled = true;
//			Framed = framed;
			ConnectionProvider = new ConnectionPool(Host, Port, ElasticSearchConfig.Instance.ConnectionPool,framed);
		}
Ejemplo n.º 2
0
		public ESNode(NodeDefinition nodeDefinition)
		{
			Enabled = nodeDefinition.Enabled;
			Host = nodeDefinition.Host;
			Port = nodeDefinition.Port;
//			Framed = nodeDefinition.IsFramed;
			DangerZoneThreshold = nodeDefinition.DangerZoneThreshold;
			DangerZoneSeconds = nodeDefinition.DangerZoneSeconds;
			ConnectionProvider = new ConnectionPool(nodeDefinition.Host, nodeDefinition.Port, nodeDefinition.ConnectionPool??ElasticSearchConfig.Instance.ConnectionPool,nodeDefinition.IsFramed);
		}