From: Marcus <the...@us...> - 2004-03-25 15:36:22
|
Update of /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25193 Modified Files: ScannerPlugin.java Log Message: export of scanning state Index: ScannerPlugin.java =================================================================== RCS file: /cvsroot/junk/junk/WEB-INF/classes/junk/plugin/scanner/ScannerPlugin.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ScannerPlugin.java 24 Mar 2004 15:57:55 -0000 1.8 --- ScannerPlugin.java 25 Mar 2004 15:25:34 -0000 1.9 *************** *** 75,78 **** --- 75,81 ---- public static final String KEY_SCANNER_CONFIG = "scanner-config"; + /** the key under which the scanning status is saved in the servlet context */ + public static final String KEY_SCANNER_RUNNING = "scanner-running"; + /** version */ private static final String VERSION = "v0.1"; *************** *** 135,139 **** public void init(ActionServlet a, ModuleConfig m) throws ServletException { ! this.actionServlet = a; try { --- 138,142 ---- public void init(ActionServlet a, ModuleConfig m) throws ServletException { ! this.actionServlet = a; try { *************** *** 190,194 **** * not sure if i need this anyway... * @param conf fnoc ! */ protected void setConf(ScannerConfig conf) { this.conf = conf; --- 193,197 ---- * not sure if i need this anyway... * @param conf fnoc ! */ protected void setConf(ScannerConfig conf) { this.conf = conf; *************** *** 332,335 **** --- 335,340 ---- this.isScanning = true; //set the semaphore + this.actionServlet.getServletContext().setAttribute(ScannerPlugin.KEY_SCANNER_RUNNING, + new Boolean(this.isScanning)); //get the old hostmap *************** *** 379,382 **** --- 384,389 ---- this.isScanning = false; + this.actionServlet.getServletContext().setAttribute(ScannerPlugin.KEY_SCANNER_RUNNING, + new Boolean(this.isScanning)); return true; |