View Javadoc

1   /*
2    * $Id: FileStateMonitor.java,v 1.2 2004/04/27 10:59:15 johndavidtaylor Exp $
3    * Created on Feb 21, 2004 by John Taylor jdt@roe.ac.uk .
4    *  
5    */
6   package org.abraracourcix.alipes.monitors.file;
7   import org.abraracourcix.alipes.listeners.Listener;
8   /***
9    * Monitor the state of a file on the local file system
10   * 
11   * @author jdt
12   */
13  public final class FileStateMonitor extends AbstractFileStateMonitor {
14      /***
15       * Constructor
16       * 
17       * @param listener The listener to be informed - see superclass
18       * @param seconds the polling interval - see superclass
19       */
20      public FileStateMonitor(final Listener listener, final long seconds) {
21          super(listener, seconds);
22      }
23  
24      /***
25       * @see org.abraracourcix.alipes.monitors.PollingMonitor#pole()
26       * 
27       */
28      public  void pole() {
29          checkTheFiles();
30      }
31  }
32  /*
33   * $Log: FileStateMonitor.java,v $
34   * Revision 1.2  2004/04/27 10:59:15  johndavidtaylor
35   * Refactored and added a directory monitor
36   * Revision 1.1 2004/03/17 21:18:02
37   * johndavidtaylor Copied across from incubation in beanpeeler
38   * 
39   * Revision 1.7 2004/03/14 18:49:13 johndavidtaylor corrected comments
40   * 
41   * Revision 1.6 2004/03/14 00:44:22 johndavidtaylor Added ListenerException
42   * 
43   * Revision 1.5 2004/03/11 15:46:33 johndavidtaylor Applied coding standards
44   * Revision 1.4 2004/03/11 09:49:23 johndavidtaylor Loads of updates
45   * 
46   * Revision 1.3 2004/03/09 22:29:32 johndavidtaylor Added stuff for file
47   * wildcards/regexps
48   * 
49   * Revision 1.2 2004/03/08 20:16:44 johndavidtaylor refactored to new package
50   * name
51   * 
52   * Revision 1.1 2004/03/08 19:58:24 johndavidtaylor Initial commit -transfer
53   * from previous repository
54   * 
55   * Revision 1.2 2004/03/04 17:50:55 jdt *** empty log message ***
56   * 
57   * Revision 1.1 2004/03/02 23:04:37 jdt new
58   *  
59   */