01: package org.jzonic.jlo;
02:
03: /**
04: * This class is a helper for the FileWatcher. It keeps some
05: * informations about every file that is overserved.
06: *
07: * @author Andreas Mecky
08: * @author Terry Dye
09: */
10: public class FileWatcherInfo {
11:
12: private String fileName;
13: private long lastModified;
14: private String configurationName;
15:
16: public FileWatcherInfo(String fileName, long lastModified,
17: String configurationName) {
18: this .fileName = fileName;
19: this .lastModified = lastModified;
20: this .configurationName = configurationName;
21: }
22:
23: /**
24: * Returns the configurationName.
25: * @return String
26: */
27: public String getConfigurationName() {
28: return configurationName;
29: }
30:
31: /**
32: * Returns the fileName.
33: * @return String
34: */
35: public String getFileName() {
36: return fileName;
37: }
38:
39: /**
40: * Returns the lastModified.
41: * @return long
42: */
43: public long getLastModified() {
44: return lastModified;
45: }
46:
47: /**
48: * Sets the configurationName.
49: * @param configurationName The configurationName to set
50: */
51: public void setConfigurationName(String configurationName) {
52: this .configurationName = configurationName;
53: }
54:
55: /**
56: * Sets the fileName.
57: * @param fileName The fileName to set
58: */
59: public void setFileName(String fileName) {
60: this .fileName = fileName;
61: }
62:
63: /**
64: * Sets the lastModified.
65: * @param lastModified The lastModified to set
66: */
67: public void setLastModified(long lastModified) {
68: this.lastModified = lastModified;
69: }
70:
71: }
|