RuntimeEnvironment.java revision 99
207N/A * The contents of this file are subject to the terms of the 207N/A * Common Development and Distribution License (the "License"). 207N/A * You may not use this file except in compliance with the License. 207N/A * language governing permissions and limitations under the License. 207N/A * When distributing Covered Code, include this CDDL HEADER in each 207N/A * If applicable, add the following below this CDDL HEADER, with the 207N/A * fields enclosed by brackets "[]" replaced with your own identifying 207N/A * information: Portions Copyright [yyyy] [name of copyright owner] 207N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 207N/A * Use is subject to license terms. 656N/A * The RuntimeEnvironment class is used as a placeholder for the current 207N/A * configuration this execution context (classloader) is using. 207N/A * Get the one and only instance of the RuntimeEnvironment 207N/A * @return the one and only instance of the RuntimeEnvironment 207N/A * Creates a new instance of RuntimeEnvironment. Private to ensure a 207N/A * Get the path to the where the index database is stored 207N/A * @return the path to the index database 207N/A * Get a file representing the index database 207N/A * @return the index database 207N/A * Set the path to where the index database is stored 459N/A * @param data the index database 261N/A * @throws IOException if the path cannot be resolved 459N/A * Set the path to where the index database is stored 207N/A * @param dataRoot the index database 564N/A * Get the path to where the sources are located 207N/A * @return path to where the sources are located 207N/A * Get a file representing the directory where the sources are located 207N/A * @return A file representing the directory where the sources are located 207N/A * Specify the source root 207N/A * @param source the location of the sources 207N/A * @throws IOException if the name cannot be resolved 668N/A * Specify the source root 668N/A * @param sourceRoot the location of the sources 668N/A * @return true if we have projects 668N/A * Get all of the projects 668N/A * @return a list containing all of the projects (may be null) 668N/A * Set the list of the projects 668N/A * @param projects the list of projects to use 668N/A * subsequent calls to the RuntimeEnvironment from this thread will use 668N/A * the same configuration 668N/A * Get the context name of the web application 668N/A * @return the web applications context name 668N/A * Set the web context name 668N/A * @param urlPrefix the web applications context name 580N/A * Get the name of the ctags program in use 580N/A * @return the name of the ctags program in use 580N/A * Specify the CTags program to use 580N/A * @param ctags the ctags program to use 580N/A * Validate that I have a Exuberant ctags program I may use 580N/A * @return true if success, false otherwise 580N/A //Check if exub ctags is available 207N/A "Please use option -c to specify path to a good Exuberant Ctags program");
274N/A "\nPlease use option -c to specify path to a good Exuberant Ctags program");
274N/A // reap the child process.. 297N/A // the process is still running??? just kill it.. 274N/A * Get the max time a SMC operation may use to avoid beeing cached 359N/A * Specify the maximum time a SCM operation should take before it will 459N/A * @param historyReaderTimeLimit the max time in ms before it is cached 694N/A * Is history cache currently enabled? 656N/A * @return true if history cache is enabled 207N/A * Specify if we should use history cache or not 816N/A * @param useHistoryCache set false if you do not want to use history cache 460N/A * Should we generate HTML or not during the indexing phase 274N/A * @return true if HTML should be generated during the indexing phase 274N/A * Specify if we should generate HTML or not during the indexing phase 274N/A * @param generateHtml set this to true to pregenerate HTML 457N/A * Get the map of external SCM repositories available 457N/A * @return A map containing all available SCMs 457N/A * Set the map of external SCM repositories 457N/A * @param repositories the repositories to use 816N/A * Set the project that is specified to be the default project to use. The 207N/A * default project is the project you will search (from the web application) 207N/A * if the page request didn't contain the cookie.. 508N/A * @param defaultProject The default project to use 656N/A * Get the project that is specified to be the default project to use. The 656N/A * default project is the project you will search (from the web application) 656N/A * if the page request didn't contain the cookie.. 656N/A * @return the default project (may be null if not specified) 359N/A * Chandan wrote the following answer on the opengrok-discuss list: 253N/A * "Traditionally search engines (specially spiders) think that large files 253N/A * are junk. Large files tend to be multimedia files etc., which text 253N/A * search spiders do not want to chew. So they ignore the contents of 207N/A * the file after a cutoff length. Lucene does this by number of words, 667N/A * which is by default is 10,000." 667N/A * By default OpenGrok will increase this limit to 60000, but it may be 667N/A * overridden in the configuration file 672N/A * @return The maximum words to index 270N/A * Read an configuration file and set it as the current configuration. 564N/A * @param file the file to read 270N/A * @throws IOException if an error occurs 270N/A * Write the current configuration to a file 270N/A * @param file the file to write the configuration into 270N/A * @throws IOException if an error occurs 359N/A * Write the current configuration to a socket 359N/A * @param host the host address to receive the configuration 359N/A * @param port the port to use on the host 359N/A * @throws IOException if an error occurs 207N/A * Try to stop the configuration listener thread 207N/A * Start a thread to listen on a socket to receive new configurations 359N/A * @param endpoint The socket address to listen on 359N/A * @return true if the endpoint was available (and the thread was started)