diff rep/handler/REPNode.java @ 450:21cb16b7f3df

block message in Editor.write()
author one
date Thu, 23 Sep 2010 18:15:37 +0900
parents 1bb59652d89c
children c83af820eb62
line wrap: on
line diff
--- a/rep/handler/REPNode.java	Wed Sep 22 22:11:58 2010 +0900
+++ b/rep/handler/REPNode.java	Thu Sep 23 18:15:37 2010 +0900
@@ -110,8 +110,17 @@
 
 	public abstract String getLocalHostName();
 
-
+	/**
+	 * Send to the next REPNode (with possible blocking)
+	 * @param command
+	 */
 	public abstract void send(REPCommand command) ;
+	
+	/**
+	 * write command to the socket channel
+	 * @param command
+	 */
+	public abstract void write(REPCommand command) ;
 
 	public abstract void sendWithSeq(REPCommand command) ;
 
@@ -119,9 +128,6 @@
 
 	public abstract int seq() ;
 
-	public abstract boolean isMerging() ;
-
-
 	public abstract boolean manage(REPCommand command) ;
 
 
@@ -163,6 +169,10 @@
 
 	public abstract List<REPCommand> getSentList() ;
 
+	public void sendToEditor(REPCommand m) {
+		send(m);		
+	}
+