Added recovery to start of application

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2017-05-31 15:01:24 +02:00
parent 3d51309e0b
commit b275dabf63
2 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class PersistenceManager {
/**
* Performs the recovery actions.
*/
public synchronized void recovery() {
synchronized void recovery() {
try {
BufferedReader reader = new BufferedReader(new FileReader(_dataPath + "log.txt"));
String line;

View File

@ -3,6 +3,7 @@
*/
public class ThreadCreator {
public static void main(String[] args) {
PersistenceManager.getInstance().recovery();
Thread t1 = new ClientThread(1, 1, 10);
Thread t2 = new ClientThread(2, 11, 20);
Thread t3 = new ClientThread(3, 21, 30);