diff rep/handler/REPNode.java @ 386:bba62c4ac323

sync-option
author one@firefly.cr.ie.u-ryukyu.ac.jp
date Mon, 10 Nov 2008 22:19:34 +0900
parents bcdf5476b8e4
children 6f356d160e58
line wrap: on
line diff
--- a/rep/handler/REPNode.java	Mon Nov 10 22:18:14 2008 +0900
+++ b/rep/handler/REPNode.java	Mon Nov 10 22:19:34 2008 +0900
@@ -4,6 +4,7 @@
 
 import rep.REP;
 import rep.REPCommand;
+import rep.Session;
 import rep.channel.REPSelectionKey;
 import rep.channel.REPSocketChannel;
 
@@ -103,6 +104,7 @@
 
 	public abstract void send(REPCommand command) ;
 
+	public abstract void sendWithSeq(REPCommand command) ;
 
 	public abstract void setQuit2(REPCommand receivedCommand) ;
 
@@ -114,6 +116,8 @@
 	public abstract boolean manage(REPCommand command) ;
 
 
+	public abstract void selectSession(REPCommand sendCommand,Session session) ;
+
 	public void setMode(REP cmd) {
 		mode = cmd;
 	}
@@ -136,6 +140,10 @@
 	public void setNext(REPNode f) {
 		next = f;
 	}
-	
+
 
+	public void sendSync(REPCommand sync) {
+		next.sendWithSeq(sync);
+	}
+	
 }