View Javadoc

1   /**
2    * Copyright (c) 2002-2011 "Neo Technology,"
3    * Network Engine for Objects in Lund AB [http://neotechnology.com]
4    *
5    * This file is part of Neo4j.
6    *
7    * Neo4j is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU General Public License as published by
9    * the Free Software Foundation, either version 3 of the License, or
10   * (at your option) any later version.
11   *
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Public License for more details.
16   *
17   * You should have received a copy of the GNU General Public License
18   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19   */
20  package org.neo4j.server.configuration;
21  
22  import java.io.File;
23  import java.util.Map;
24  import java.util.Set;
25  
26  import org.apache.commons.configuration.Configuration;
27  
28  public interface Configurator {
29      String DB_TUNING_PROPERTY_FILE_KEY = "org.neo4j.server.db.tuning.properties";
30      String DEFAULT_CONFIG_DIR = File.separator + "etc" + File.separator + "neo";
31      String DATABASE_LOCATION_PROPERTY_KEY = "org.neo4j.server.database.location";
32      String NEO_SERVER_CONFIG_FILE_KEY = "org.neo4j.server.properties";
33      String DB_MODE_KEY = "org.neo4j.server.database.mode";
34  
35      int DEFAULT_WEBSERVER_PORT = 7474;
36      String WEBSERVER_PORT_PROPERTY_KEY = "org.neo4j.server.webserver.port";
37  
38      String DATA_API_PATH_PROPERTY_KEY = "org.neo4j.server.webadmin.data.uri";
39      String DATA_API_PACKAGE = "org.neo4j.server.rest.web";
40      String DEFAULT_DATA_API_PATH = "/db/data";
41  
42      String ENABLE_OSGI_SERVER_PROPERTY_KEY = "org.neo4j.server.osgi.enable";
43      String OSGI_BUNDLE_DIR_PROPERTY_KEY = "org.neo4j.server.osgi.bundledir";
44      String OSGI_CACHE_DIR_PROPERTY_KEY = "org.neo4j.server.osgi.cachedir";
45  
46      String ROOT_DISCOVERY_REST_API_PACKAGE = "org.neo4j.server.rest.discovery";
47  
48      String MANAGEMENT_API_PACKAGE = "org.neo4j.server.webadmin.rest";
49      String MANAGEMENT_PATH_PROPERTY_KEY = "org.neo4j.server.webadmin.management.uri";
50      String DEFAULT_MANAGEMENT_API_PATH = "/db/manage";
51  
52      String DEFAULT_WEB_ADMIN_PATH = "/webadmin";
53      String DEFAULT_WEB_ADMIN_STATIC_WEB_CONTENT_LOCATION = "webadmin-html";
54  
55      String RRDB_LOCATION_PROPERTY_KEY = "org.neo4j.server.webadmin.rrdb.location";
56  
57      String THIRD_PARTY_PACKAGES_KEY = "org.neo4j.server.thirdparty_jaxrs_classes";
58  
59      Configuration configuration();
60  
61      Map<String, String> getDatabaseTuningProperties();
62  
63      Set<ThirdPartyJaxRsPackage> getThirdpartyJaxRsClasses();
64  }