01: /*
02: * Project: AMODA - Abstract Modeled Application
03: * Class: de.gulden.framework.amoda.generic.core.LogFile
04: * Version: snapshot-beautyj-1.1
05: *
06: * Date: 2004-09-29
07: *
08: * This is a snapshot version of the AMODA 0.2 development branch,
09: * 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: // --- methods ---
48: // ------------------------------------------------------------------------
49:
50: public void open() {
51: // your code here
52: }
53:
54: public void doLogMessage(LogMessage logMessage) {
55: // your code here
56: }
57:
58: public void flush() {
59: // your code here
60: }
61:
62: public void close() {
63: // your code here
64: }
65:
66: public File getFile() {
67: return file;
68: }
69:
70: public void setFile(File _file) {
71: file = _file;
72: }
73:
74: public int getMaxFlushCount() {
75: return maxFlushCount;
76: }
77:
78: public void setMaxFlushCount(int _maxFlushCount) {
79: maxFlushCount = _maxFlushCount;
80: }
81:
82: public long getMaxFlushMillisecs() {
83: return maxFlushMillisecs;
84: }
85:
86: public void setMaxFlushMillisecs(long _maxFlushMillisecs) {
87: maxFlushMillisecs = _maxFlushMillisecs;
88: }
89:
90: } // end LogFile
|