/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/**
*
* @author Jan S Berg
*/
public class SettingsPersistence {
/** property key used to obtain the timeout for indexing */
/** property key used to obtain the JMX connection timeout value */
/** property key used to obtain the file log path */
/** property key used to obtain file log level */
/** property key used to obtain console log level */
/**
* Get settings for the OpenGrok Management Agent Client
* Try if a config file has been given
* if not set, try default settings (oga.properties in management directory)
* @param cfgfile
* @throws java.io.IOException
*/
@SuppressWarnings("resource")
try {
}
//do we need to propagate this up ?
} finally {
}
try {
//do we need to propagate this up ?
} finally { //NOPMD
}
}
}
/**
* Get the JMX URL to the agent. Generate a URL from host and port
* properties if no URL has been specified.
*
* @return the URL to the agent
*/
}
return url;
}
/**
* Get the property with the given key.
* @param key key to use for lookup.
* @return {@code null} if not found, the corresponding value otherwise.
*/
}
/**
* Set the property with the given key.
* @param key key to use for mapping.
* @param val value to set.
*/
}
/**
* Get log level assigned for logging to file.
* @return {@code null} if not found, the corresponding value otherwise.
*/
}
/**
* Get log level assigned for logging to console.
* @return {@code null} if not found, the corresponding value otherwise.
*/
}
}