Mercurial > hg > Database > jungle-network
changeset 158:cd4d64249931
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 12 Jul 2014 15:58:48 +0900 |
parents | 47ca5d48c30f |
children | 13ececb7e35e d726637dee77 |
files | src/main/java/alice/jungle/persistent/PersistentJournal.java src/main/java/alice/jungle/remote/RemoteConfig.java src/main/java/app/bbs/DistributeApp.java src/main/java/app/bbs/ShowMessageWithTimeStampServlet.java src/test/java/alice/codesegment/local/HasFieldCodeSegment.java |
diffstat | 5 files changed, 7 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/jungle/persistent/PersistentJournal.java Sat Jul 12 14:06:08 2014 +0900 +++ b/src/main/java/alice/jungle/persistent/PersistentJournal.java Sat Jul 12 15:58:48 2014 +0900 @@ -14,7 +14,7 @@ public class PersistentJournal implements NetworkJournal { - private ChangeListWriter WRITER; + // private ChangeListWriter WRITER; private ChangeListReader READER; private OutputStream out; private InputStream in; @@ -25,7 +25,7 @@ public PersistentJournal(File file) throws FileNotFoundException { out = new FileOutputStream(file,true); in = new FileInputStream(file); - WRITER = new PersistentChangeListWriter(out); + // WRITER = new PersistentChangeListWriter(out); READER = new PersistentChangeListReader(in); } @@ -58,7 +58,7 @@ public void setOutputStream(OutputStream _out) { out = _out; - WRITER = new PersistentChangeListWriter(out); + // WRITER = new PersistentChangeListWriter(out); } public OutputStream getOutputStream() {
--- a/src/main/java/alice/jungle/remote/RemoteConfig.java Sat Jul 12 14:06:08 2014 +0900 +++ b/src/main/java/alice/jungle/remote/RemoteConfig.java Sat Jul 12 15:58:48 2014 +0900 @@ -17,4 +17,5 @@ } } } + }
--- a/src/main/java/app/bbs/DistributeApp.java Sat Jul 12 14:06:08 2014 +0900 +++ b/src/main/java/app/bbs/DistributeApp.java Sat Jul 12 15:58:48 2014 +0900 @@ -1,12 +1,6 @@ package app.bbs; -import java.util.HashMap; -import java.util.LinkedList; - import alice.jungle.remote.RemoteConfig; -import alice.topology.HostMessage; -import alice.topology.manager.IncomingHosts; -import alice.topology.manager.NodeInfo; import alice.topology.node.TopologyNode; import app.bbs.codesegment.StartBBSCodeSegment; @@ -14,8 +8,8 @@ public static void main(String[] args) throws Exception { RemoteConfig conf = new RemoteConfig(args); if (conf.getManagerHostName() == null) { - String localHostName ="localhost"; - HostMessage host = new HostMessage(localHostName, conf.localPort); + // String localHostName ="localhost"; + // HostMessage host = new HostMessage(localHostName, conf.localPort); StartBBSCodeSegment cs1 = new StartBBSCodeSegment(args, conf.bbsPort); cs1.ods.put("host", "node0"); } else {
--- a/src/main/java/app/bbs/ShowMessageWithTimeStampServlet.java Sat Jul 12 14:06:08 2014 +0900 +++ b/src/main/java/app/bbs/ShowMessageWithTimeStampServlet.java Sat Jul 12 15:58:48 2014 +0900 @@ -2,7 +2,6 @@ import java.io.PrintWriter; -import javax.servlet.AsyncContext; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -19,7 +18,6 @@ private final NetworkBulletinBoard bbs; private final String createBoardMessagePath; private final String editMessagePath; - private ThreadPool threadPool; private static final String PARAM_BOARD_NAME = "bname"; @@ -29,7 +27,6 @@ bbs = _bbs; createBoardMessagePath = _createBoardMessagePath; editMessagePath = _editMessagePath; - threadPool = thp; } public void doGet(HttpServletRequest _req, HttpServletResponse _res) {
--- a/src/test/java/alice/codesegment/local/HasFieldCodeSegment.java Sat Jul 12 14:06:08 2014 +0900 +++ b/src/test/java/alice/codesegment/local/HasFieldCodeSegment.java Sat Jul 12 15:58:48 2014 +0900 @@ -16,7 +16,7 @@ public void run() { int count = arg1.asInteger(); - System.out.println("-HasFieldCodeSegment- : "+str); + System.out.println("-HasFieldCodeSegment- : "+str+" "+count); System.exit(0); }