package pl.lusch.elastic.dc;

import org.elasticsearch.plugins.Plugin;

/**
 * Hello world!
 *
 */
public class DataCollector extends Plugin
{
	@Override
	public String description() {
		return "Data Collector for ES";
	}

	@Override
	public String name() {
		return "elastic-dc";
	}
}

@@ -34,69 +34,198 @@
 ort 
-org.elasticsearch.plugins.Plugin;%0A%0A/**%0A * Hello world!%0A *%0A */
+java.util.Collection;%0Aimport java.util.Collections;%0A%0Aimport org.elasticsearch.common.inject.Module;%0Aimport org.elasticsearch.plugins.Plugin;%0A%0Aimport pl.lusch.elastic.dc.modules.StatsModule;%0A
 %0Apub
@@ -265,16 +265,17 @@
 lugin%0A%7B%0A
+%0A
 %09@Overri
@@ -407,10 +407,145 @@
 dc%22;%0A%09%7D%0A
+%0A%09@Override%0A%09public Collection%3CModule%3E nodeModules() %7B%0A%09%09%0A%09%09return Collections.%3CModule%3EsingletonList(%0A%09%09%09new StatsModule()%0A%09%09);%0A%09%09%0A%09%7D%0A%0A
 %7D%0A

load stats module