Change to LuceneIndexer so that it will attempt to close the searcher if it cannot replace the live index directory NIHVIVO-2065

This commit is contained in:
bdc34 2011-02-08 00:15:19 +00:00
parent aef7ef1a62
commit 54fa664a24
3 changed files with 34 additions and 29 deletions

View file

@ -103,32 +103,7 @@ try {
}
out.write("</table>\r\n");
out.write("<input type=submit value=\"Submit changes to logging levels\">");
out.write("</form>\n");
/* write out form to do a test message */
out.write("<h2>Test the logging configuration by sending a test message</h2>\n");
out.write("<form name=\"TestForm\" ACTION=\""+request.getContextPath()+request.getServletPath()+"\" METHOD=\"PUT\">\n");
out.write("<input type=\"hidden\" name=\"doTestMsg\" value=\"true\">\n");
out.write("<table>\n\r");
out.write(" <tr><td>logger:</td>\n\r");
out.write(" <td><select name=\"logger\"/>\n\r");
for(String logName : logNames){
out.write(" <option>" + logName + "</option>\n\r");
}
out.write(" </select></td></tr>\n\r");
out.write(" <tr><td>level:</td>\n\r");
out.write(" <td><select name=\"level\">\n\r");
for (int i = 0; i < levels.length; i++) {
out.write(" <option>"+levels[i].toString() + "</option>\n\r");
}
out.write(" </select></td></tr>\n\r");
out.write(" <tr><td>message:</td> \n\r");
out.write(" <td><textarea name=\"msg\"></textarea></td></tr>\n\r");
out.write(" <tr><td><input type=\"submit\" value=\"submit test message\"/></td></tr>\n\r");
out.write("</table></form>\n");
out.write("</form>\n");
out.write("</BODY></HTML>\r\n");
out.flush();