Mercurial > hg > RemoteEditor > REPSessionManager
comparison rep/SessionManager.java @ 228:e6c7a56ff7f1
*** empty log message ***
author | pin |
---|---|
date | Sun, 31 Aug 2008 15:27:04 +0900 (2008-08-31) |
parents | cbd67817e9cd |
children | f816e0cbe6fd |
comparison
equal
deleted
inserted
replaced
227:cbd67817e9cd | 228:e6c7a56ff7f1 |
---|---|
73 sessionList = new LinkedList<Session>(); | 73 sessionList = new LinkedList<Session>(); |
74 smList = new SessionManagerList(); | 74 smList = new SessionManagerList(); |
75 editorList = new LinkedList<Editor>(); | 75 editorList = new LinkedList<Editor>(); |
76 waitingCommandInMerge = new LinkedList<PacketSet>(); | 76 waitingCommandInMerge = new LinkedList<PacketSet>(); |
77 waitingQueue = new LinkedBlockingQueue<SessionManagerEvent>(); | 77 waitingQueue = new LinkedBlockingQueue<SessionManagerEvent>(); |
78 | |
79 //デフォルトのSessionを作っておく(テスト用に?) | |
80 if(sessionList.size() > 0) System.out.println("Error : SessionManager.init():"); | |
81 Session defaultSession = new Session(sessionList.size(), "DefaultSession.txt", new Editor(0,null)); | |
82 sessionList.add(defaultSession); | |
78 | 83 |
79 } | 84 } |
80 | 85 |
81 private void mainLoop() throws IOException { | 86 private void mainLoop() throws IOException { |
82 while(true){ | 87 while(true){ |