comparison src/org/eclipse/jetty/util/Scanner.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
33 import java.util.Set; 33 import java.util.Set;
34 import java.util.Timer; 34 import java.util.Timer;
35 import java.util.TimerTask; 35 import java.util.TimerTask;
36 36
37 import org.eclipse.jetty.util.component.AbstractLifeCycle; 37 import org.eclipse.jetty.util.component.AbstractLifeCycle;
38 import org.eclipse.jetty.util.log.Log; 38 import org.slf4j.Logger;
39 import org.eclipse.jetty.util.log.Logger; 39 import org.slf4j.LoggerFactory;
40 40
41 41
42 /** 42 /**
43 * Scanner 43 * Scanner
44 * 44 *
46 * files and reporting these events via registered Listeners. 46 * files and reporting these events via registered Listeners.
47 * 47 *
48 */ 48 */
49 public class Scanner extends AbstractLifeCycle 49 public class Scanner extends AbstractLifeCycle
50 { 50 {
51 private static final Logger LOG = Log.getLogger(Scanner.class); 51 private static final Logger LOG = LoggerFactory.getLogger(Scanner.class);
52 private static int __scannerId=0; 52 private static int __scannerId=0;
53 private int _scanInterval; 53 private int _scanInterval;
54 private int _scanCount = 0; 54 private int _scanCount = 0;
55 private final List<Listener> _listeners = new ArrayList<Listener>(); 55 private final List<Listener> _listeners = new ArrayList<Listener>();
56 private final Map<String,TimeNSize> _prevScan = new HashMap<String,TimeNSize> (); 56 private final Map<String,TimeNSize> _prevScan = new HashMap<String,TimeNSize> ();
412 if (l instanceof ScanListener) 412 if (l instanceof ScanListener)
413 ((ScanListener)l).scan(); 413 ((ScanListener)l).scan();
414 } 414 }
415 catch (Exception e) 415 catch (Exception e)
416 { 416 {
417 LOG.warn(e); 417 LOG.warn("",e);
418 } 418 }
419 catch (Error e) 419 catch (Error e)
420 { 420 {
421 LOG.warn(e); 421 LOG.warn("",e);
422 } 422 }
423 } 423 }
424 } 424 }
425 425
426 /** 426 /**