.build().start();
node.client().admin().indices()
- .preparePutTemplate("default")
- .setTemplate("*")
- .addMapping("_default_", "{\"dynamic\": \"strict\"}")
- .get();
+ .preparePutTemplate("default")
+ .setTemplate("*")
+ .addMapping("_default_", "{\"dynamic\": \"strict\"}")
+ .get();
if (this.isBlocking) {
while (node != null && !node.isClosed()) {
import javax.management.InstanceNotFoundException;
import javax.management.MBeanRegistrationException;
import javax.management.MBeanServer;
-
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.net.ServerSocket;
private IndexDefinition(String indexName, String indexType) {
this.indexName = indexName;
this.indexType = indexType;
-}
+ }
public String getIndexName() {
return indexName;
return MANAGEMENT_TYPE;
}
- public static final IndexDefinition RULE = new IndexDefinition("rules","rules");
- public static final IndexDefinition ACTIVE_RULE = new IndexDefinition("rules","activeRules");
- public static final IndexDefinition LOG = new IndexDefinition("logs","sonarLogs");
+ public static final IndexDefinition RULE = new IndexDefinition("rules", "rules");
+ public static final IndexDefinition ACTIVE_RULE = new IndexDefinition("rules", "activeRules");
+ public static final IndexDefinition LOG = new IndexDefinition("logs", "sonarLogs");
@VisibleForTesting
- protected static IndexDefinition TEST = new IndexDefinition("test","test");
+ protected static IndexDefinition TEST = new IndexDefinition("test", "test");
}