30N/A * CDDL HEADER START 30N/A * The contents of this file are subject to the terms of the 30N/A * Common Development and Distribution License (the "License"). 30N/A * You may not use this file except in compliance with the License. 30N/A * language governing permissions and limitations under the License. 30N/A * When distributing Covered Code, include this CDDL HEADER in each 30N/A * If applicable, add the following below this CDDL HEADER, with the 30N/A * fields enclosed by brackets "[]" replaced with your own identifying 30N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1393N/A * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved. 30N/A * The RuntimeEnvironment class is used as a placeholder for the current 58N/A * configuration this execution context (classloader) is using. 77N/A * Get the one and only instance of the RuntimeEnvironment 77N/A * @return the one and only instance of the RuntimeEnvironment 77N/A * Creates a new instance of RuntimeEnvironment. Private to ensure a 77N/A * singleton pattern. 1463N/A * Makes testing easier by being able to drop the current env and replace it 1467N/A * Check, whether the running JVM is older than version 1.7 . 1467N/A * @return {@code true} if older than 1.7 77N/A * subsequent calls to the RuntimeEnvironment from this thread will use 77N/A * the same configuration 1470N/A * Validate that I have a Exuberant ctags program I may use. 1470N/A * @return {@code true} if Exuberant ctags could be run. 1327N/A "Please use option -c to specify path to a good Exuberant Ctags program\n"+
1327N/A "Or set it in java system property " 77N/A * Read an configuration file and set it as the current configuration. 77N/A * @param file the file to read 77N/A * @throws IOException if an error occurs 77N/A * Write the current configuration to a file 77N/A * @param file the file to write the configuration into 77N/A * @throws IOException if an error occurs 77N/A * Write the current configuration to a socket 77N/A * @param host the host address to receive the configuration 77N/A * @param port the port to use on the host 77N/A * @throws IOException if an error occurs 1461N/A * Send the current configuration to the web application [server]. 1461N/A * Set the current configuration for this instance to the given parameter. 1461N/A * Involves invalidating known repositories of the {@link HistoryGuru}. 1470N/A * @param config configuration to set. 1461N/A * Get the current configuration for this instance. 1461N/A * @return the current configuration. 77N/A * Try to stop the configuration listener thread 77N/A * Start a thread to listen on a socket to receive new configurations 77N/A * @param endpoint The socket address to listen on 77N/A * @return true if the endpoint was available (and the thread was started)