public static final String ES_CLUSTER_PROPERTY = "sonar.cluster.name";
public static final String ES_CLUSTER_INET = "sonar.cluster.master";
- private static final String SONAR_PATH_HOME = "sonar.path.home";
- private static final String SONAR_PATH_DATA = "sonar.path.data";
- private static final String SONAR_PATH_TEMP = "sonar.path.temp";
- private static final String SONAR_PATH_LOG = "sonar.path.log";
+ public static final String SONAR_PATH_HOME = "sonar.path.home";
+ public static final String SONAR_PATH_DATA = "sonar.path.data";
+ public static final String SONAR_PATH_TEMP = "sonar.path.temp";
+ public static final String SONAR_PATH_LOG = "sonar.path.log";
private static final Integer MINIMUM_INDEX_REPLICATION = 1;
public void can_connect() throws Exception {
Properties properties = new Properties();
properties.setProperty(MonitoredProcess.NAME_PROPERTY, "ES");
- properties.setProperty("sonar.path.data", temp.newFolder().getAbsolutePath());
- properties.setProperty("sonar.path.logs", temp.newFolder().getAbsolutePath());
- properties.setProperty("sonar.path.temp", temp.newFolder().getAbsolutePath());
+ properties.setProperty(SearchServer.SONAR_PATH_DATA, temp.newFolder().getAbsolutePath());
+ properties.setProperty(SearchServer.SONAR_PATH_TEMP, temp.newFolder().getAbsolutePath());
+ properties.setProperty(SearchServer.SONAR_PATH_LOG, temp.newFolder().getAbsolutePath());
properties.setProperty(SearchServer.ES_PORT_PROPERTY, Integer.toString(freeESPort));
properties.setProperty(SearchServer.ES_CLUSTER_PROPERTY, "sonarqube");