Mercurial > hg > blitz_condensed
comparison src/org/dancres/blitz/config/PersistentBase.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz.config; | |
2 | |
3 /** | |
4 All persistent modes share this same set of base settings | |
5 */ | |
6 public abstract class PersistentBase implements StorageModel { | |
7 | |
8 private boolean shouldResetLogStream; | |
9 private boolean shouldCleanLogs; | |
10 private int theLogBufferSize; | |
11 private int theMaxLogsBeforeSync; | |
12 | |
13 PersistentBase(boolean shouldReset, boolean shouldClean, | |
14 int aLogBufferSize, int aMaxLogsBeforeSync) { | |
15 shouldResetLogStream = shouldReset; | |
16 shouldCleanLogs = shouldClean; | |
17 theLogBufferSize = aLogBufferSize; | |
18 theMaxLogsBeforeSync = aMaxLogsBeforeSync; | |
19 } | |
20 | |
21 public boolean shouldResetLogStream() { | |
22 return shouldResetLogStream; | |
23 } | |
24 | |
25 public boolean shouldCleanLogs() { | |
26 return shouldCleanLogs; | |
27 } | |
28 | |
29 public int getLogBufferSize() { | |
30 return theLogBufferSize; | |
31 } | |
32 | |
33 public int getMaxLogsBeforeSync() { | |
34 return theMaxLogsBeforeSync; | |
35 } | |
36 } |