001    /*
002     * SonarQube, open source software quality management tool.
003     * Copyright (C) 2008-2014 SonarSource
004     * mailto:contact AT sonarsource DOT com
005     *
006     * SonarQube is free software; you can redistribute it and/or
007     * modify it under the terms of the GNU Lesser General Public
008     * License as published by the Free Software Foundation; either
009     * version 3 of the License, or (at your option) any later version.
010     *
011     * SonarQube is distributed in the hope that it will be useful,
012     * but WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014     * Lesser General Public License for more details.
015     *
016     * You should have received a copy of the GNU Lesser General Public License
017     * along with this program; if not, write to the Free Software Foundation,
018     * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
019     */
020    package org.sonar.process;
021    
022    /**
023     * Constants shared by search, web server and monitor processes.
024     * It represents more or less all the properties commented in conf/sonar.properties
025     */
026    public interface ProcessConstants {
027    
028      String CLUSTER_ACTIVATE = "sonar.cluster.activate";
029      String CLUSTER_MASTER = "sonar.cluster.master";
030      String CLUSTER_MASTER_HOST = "sonar.cluster.masterHost";
031      String CLUSTER_NAME = "sonar.cluster.name";
032      String CLUSTER_NODE_NAME = "sonar.node.name";
033    
034      String JDBC_URL = "sonar.jdbc.url";
035      String JDBC_LOGIN = "sonar.jdbc.username";
036      String JDBC_PASSWORD = "sonar.jdbc.password";
037      String JDBC_DRIVER_PATH = "sonar.jdbc.driverPath";
038      String JDBC_MAX_ACTIVE = "sonar.jdbc.maxActive";
039      String JDBC_MAX_IDLE = "sonar.jdbc.maxIdle";
040      String JDBC_MIN_IDLE = "sonar.jdbc.minIdle";
041      String JDBC_MAX_WAIT = "sonar.jdbc.maxWait";
042      String JDBC_MIN_EVICTABLE_IDLE_TIME_MILLIS = "sonar.jdbc.minEvictableIdleTimeMillis";
043      String JDBC_TIME_BETWEEN_EVICTION_RUNS_MILLIS = "sonar.jdbc.timeBetweenEvictionRunsMillis";
044    
045      String PATH_DATA = "sonar.path.data";
046      String PATH_HOME = "sonar.path.home";
047      String PATH_LOGS = "sonar.path.logs";
048      String PATH_TEMP = "sonar.path.temp";
049      String PATH_WEB = "sonar.path.web";
050    
051      String SEARCH_PORT = "sonar.search.port";
052      String SEARCH_JAVA_OPTS = "sonar.search.javaOpts";
053      String SEARCH_JAVA_ADDITIONAL_OPTS = "sonar.search.javaAdditionalOpts";
054      String SEARCH_TYPE = "sonar.search.type";
055    
056      String WEB_JAVA_OPTS = "sonar.web.javaOpts";
057      String WEB_JAVA_ADDITIONAL_OPTS = "sonar.web.javaAdditionalOpts";
058    
059      /**
060       * Used by Orchestrator to ask for shutdown of monitor process
061       */
062      String ENABLE_STOP_COMMAND = "sonar.enableStopCommand";
063    
064      // Constants declared by the ES plugin ListUpdate (see sonar-search)
065      // that are used by sonar-server
066      String ES_PLUGIN_LISTUPDATE_SCRIPT_NAME = "listUpdate";
067      String ES_PLUGIN_LISTUPDATE_ID_FIELD = "idField";
068      String ES_PLUGIN_LISTUPDATE_ID_VALUE = "idValue";
069      String ES_PLUGIN_LISTUPDATE_FIELD = "field";
070      String ES_PLUGIN_LISTUPDATE_VALUE = "value";
071    }