/*
* 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 {
public static final String CONNECTIONTIMEOUTKEY = "org.opensolaris.opengrok.management.connectiontimeout";
public static final String FILELOGLEVELKEY = "org.opensolaris.opengrok.management.logging.filelevel";
public static final String CONSOLELOGLEVELKEY = "org.opensolaris.opengrok.management.logging.consolelevel";
/**
* 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)
* @throws java.io.IOException
*/
}
throw ioe; //do we need to propagate this up ?
}
throw ioe; //do we need to propagate this up ?
}
}
}
/**
* 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;
}
public boolean hasExistingSettings() {
return existingSettings;
}
}
}
}
}
}