Lines Matching refs:props

63     Properties props;
70 private static boolean loadProperties(File file, InputStream in, Properties props) {
77 props.load(stream);
92 Properties props = new Properties();
94 boolean success = loadProperties(null, OGAgent.class.getResourceAsStream("oga.properties"), props);
98 success = loadProperties(file, null, props);
102 props.putAll(System.getProperties());
107 props.setProperty("agent", args[i].substring("--agent=".length()));
111 success = loadProperties(file, null, props);
122 uri = new URI(props.getProperty("agent"));
131 setIfNotSet(props, LOG_PATH, uri.getPath() + "/log");
133 setIfNotSet(props, CONFIG_FILE,
136 setIfNotSet(props, JMX_HOST, uri.getHost());
138 setIfNotSet(props, JMX_PORT, String.valueOf(uri.getPort()));
140 setIfNotSet(props, RMI_PORT, String.valueOf(uri.getPort() + 1));
142 setIfNotSet(props, JMX_URL,
143 "service:jmx:rmi://" + props.getProperty(JMX_HOST) + ":" +
144 props.getProperty(JMX_PORT) + "/jndi/rmi://" +
145 props.getProperty(JMX_HOST) + ":" +
146 props.getProperty(RMI_PORT) + "/opengrok");
148 success = createLogger(props);
153 OGAgent oga = new OGAgent(props);
171 private OGAgent(Properties props) {
172 this.props = props;
178 private static void setIfNotSet(Properties props, String key, String val) {
179 if (!props.keySet().contains(key)) {
180 props.setProperty(key, val);
202 server.registerMBean(Management.getInstance(props), manager);
210 createIndexTimer(props);
214 String urlString = props.getProperty(JMX_URL);
221 Boolean.parseBoolean(props.getProperty(RMI_START))) {
222 int rmiport = Integer.parseInt(props.getProperty(RMI_PORT));
273 private static boolean createLogger(Properties props) {
275 String OGAlogpath = props.getProperty("org.opensolaris.opengrok.management.logging.path");
279 loglevel = Level.parse(props.getProperty("org.opensolaris.opengrok.management.logging.filelevel"));
285 consoleloglevel = Level.parse(props.getProperty("org.opensolaris.opengrok.management.logging.consolelevel"));