예제 #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();
			});
		}
예제 #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();
            });
        }
예제 #3
0
 public Seeder(ElasticsearchNode node)
 {
     this.Client = node.Client;
 }
예제 #4
0
		public Seeder(ElasticsearchNode node)
		{
			this.Client = node.Client;
		}
예제 #5
0
 public Seeder(ElasticsearchNode node) : this(node, null)
 {
 }
예제 #6
0
 public Seeder(ElasticsearchNode node, IIndexSettings indexSettings)
 {
     this.Client        = node.Client;
     this.IndexSettings = indexSettings ?? DefaultIndexSettings;
 }