Mercurial > hg > RemoteEditor > REPSessionManager
changeset 447:dc9b2da06fa9
add README
author | one |
---|---|
date | Wed, 22 Sep 2010 17:14:35 +0900 |
parents | 6a7004071777 |
children | ed97273477a0 |
files | README.txt rep/handler/Translator.java |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.txt Wed Sep 22 17:14:35 2010 +0900 @@ -0,0 +1,12 @@ +rep + REP Session Mnanager の実装系 +rep.channel + socket/socket simulator の切り替えを行うpackage + rep.handler + Session Manager のコネクションを処理するハンドラ + rep.handler.Editor Ring に接続されたEditorのhandler + rep.handler.Translator Merger for REP protocol + test.sematest + TestSessionManager Single Session Manager のテスト + TestInterManagerSession Multiple Session Manager のテスト + \ No newline at end of file
--- a/rep/handler/Translator.java Wed Sep 22 15:04:33 2010 +0900 +++ b/rep/handler/Translator.java Wed Sep 22 17:14:35 2010 +0900 @@ -86,12 +86,14 @@ * Received all merge command ack */ public void endMerge() { + if (false) { LinkedList<REPCommand> n = new LinkedList<REPCommand>(); for(int i=0;i< sortedEditCmds.size()-1;i++) { n.addLast(unMergedCmds.get(i)); } sortedEditCmds = null; unMergedCmds = n; + } } /** * Sent optimized merged command list @@ -100,6 +102,9 @@ * @return if any sent commands output */ public boolean optimizedSend(REPNode editor, LinkedList<REPCommand> output) { + /* + * Optimized send の場合は、unMergedCommand のつじつまを合わせる必要がある。 + */ sentMergedList.clear(); List<REPCommand> output1 = optimizer.optimize(output); if (output1.size()==0) {