Ejemplo n.º 1
0
		protected ClusterBase()
		{
			var name = this.GetType().Name.Replace("Cluster", "");
			var nodeConfig = new NodeConfiguration(TestClient.Configuration)
			{
				TypeOfCluster = name,
				RequiredPlugins = RequiredPlugins(this.GetType())
			};
			this.Node = new ElasticsearchNode(nodeConfig, new TestRunnerFileSystem(nodeConfig));
			this.Node.BootstrapWork.Subscribe(handle =>
			{
				this.Bootstrap();
				handle.Set();
			});
		}
Ejemplo n.º 2
0
        protected ClusterBase()
        {
            var name       = this.GetType().Name.Replace("Cluster", "");
            var nodeConfig = new NodeConfiguration(TestClient.Configuration)
            {
                TypeOfCluster   = name,
                RequiredPlugins = RequiredPlugins(this.GetType())
            };

            this.Node = new ElasticsearchNode(nodeConfig, new TestRunnerFileSystem(nodeConfig));
            this.Node.BootstrapWork.Subscribe(handle =>
            {
                this.Bootstrap();
                handle.Set();
            });
        }
Ejemplo n.º 3
0
 public Seeder(ElasticsearchNode node)
 {
     this.Client = node.Client;
 }
Ejemplo n.º 4
0
		public Seeder(ElasticsearchNode node)
		{
			this.Client = node.Client;
		}
Ejemplo n.º 5
0
 public Seeder(ElasticsearchNode node) : this(node, null)
 {
 }
Ejemplo n.º 6
0
 public Seeder(ElasticsearchNode node, IIndexSettings indexSettings)
 {
     this.Client        = node.Client;
     this.IndexSettings = indexSettings ?? DefaultIndexSettings;
 }