Mercurial > hg > Database > jungle-network
comparison src/main/java/alice/jungle/persistent/PersistentJournal.java @ 116:895ab2907db3
Modified pom.xml
author | one |
---|---|
date | Fri, 20 Dec 2013 20:47:35 +0900 |
parents | 3f9c6ab43461 |
children | f64ff5bd66f5 |
comparison
equal
deleted
inserted
replaced
115:3f9c6ab43461 | 116:895ab2907db3 |
---|---|
16 | 16 |
17 public class PersistentJournal implements Journal { | 17 public class PersistentJournal implements Journal { |
18 | 18 |
19 private static ChangeListWriter WRITER; | 19 private static ChangeListWriter WRITER; |
20 private static ChangeListReader READER; | 20 private static ChangeListReader READER; |
21 private static MessagePack msgpack = new MessagePack(); | 21 private static MessagePack msgpack; |
22 private static OutputStream out = null; | 22 private static OutputStream out = null; |
23 private static InputStream in = null; | 23 private static InputStream in = null; |
24 | |
25 static { | |
26 msgpack = new MessagePack(); | |
27 } | |
24 | 28 |
25 public PersistentJournal() { | 29 public PersistentJournal() { |
26 } | 30 } |
27 | 31 |
28 public PersistentJournal(File file) throws FileNotFoundException { | 32 public PersistentJournal(File file) throws FileNotFoundException { |
71 | 75 |
72 public InputStream getInputStream() { | 76 public InputStream getInputStream() { |
73 return in; | 77 return in; |
74 } | 78 } |
75 | 79 |
76 public static MessagePack getMessagePack() { | 80 public static MessagePack getMsgPackInstance() { |
77 return msgpack; | 81 return msgpack; |
78 } | 82 } |
79 | 83 |
80 } | 84 } |