KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > gulden > framework > amoda > generic > core > LogFile


1 /*
2  * Project: AMODA - Abstract Modeled Application
3  * Class: de.gulden.framework.amoda.generic.core.LogFile
4  * Version: snapshot-beautyj-1.1
5  *
6  * Date: 2004-09-29
7  *
8  * This is a snapshot version of the AMODA 0.2 development branch,
9  * it is not released as a seperate version.
10  * For AMODA, see http://amoda.berlios.de/.
11  *
12  * This is licensed under the GNU Lesser General Public License (LGPL)
13  * and comes with NO WARRANTY.
14  *
15  * Author: Jens Gulden
16  * Email: amoda@jensgulden.de
17  */

18
19 package de.gulden.framework.amoda.generic.core;
20
21 import de.gulden.framework.amoda.generic.metadata.*;
22 import de.gulden.framework.amoda.generic.option.*;
23 import de.gulden.framework.amoda.model.interaction.*;
24 import de.gulden.framework.amoda.model.interaction.LogMessagePerformer;
25 import java.io.*;
26 import java.util.*;
27
28 /**
29  * Class LogFile.
30  *
31  * @author Jens Gulden
32  * @version snapshot-beautyj-1.1
33  */

34 public class LogFile implements LogMessagePerformer {
35
36     // ------------------------------------------------------------------------
37
// --- fields ---
38
// ------------------------------------------------------------------------
39

40     protected File file;
41
42     protected int maxFlushCount;
43
44     protected long maxFlushMillisecs;
45
46
47     // ------------------------------------------------------------------------
48
// --- methods ---
49
// ------------------------------------------------------------------------
50

51     public void open() {
52         // your code here
53
}
54
55     public void doLogMessage(LogMessage logMessage) {
56         // your code here
57
}
58
59     public void flush() {
60         // your code here
61
}
62
63     public void close() {
64         // your code here
65
}
66
67     public File getFile() {
68         return file;
69     }
70
71     public void setFile(File _file) {
72         file = _file;
73     }
74
75     public int getMaxFlushCount() {
76         return maxFlushCount;
77     }
78
79     public void setMaxFlushCount(int _maxFlushCount) {
80         maxFlushCount = _maxFlushCount;
81     }
82
83     public long getMaxFlushMillisecs() {
84         return maxFlushMillisecs;
85     }
86
87     public void setMaxFlushMillisecs(long _maxFlushMillisecs) {
88         maxFlushMillisecs = _maxFlushMillisecs;
89     }
90
91 } // end LogFile
92
Popular Tags