comparison rep/handler/REPNode.java @ 384:bcdf5476b8e4

restructured-version
author one@firefly.cr.ie.u-ryukyu.ac.jp
date Mon, 10 Nov 2008 22:16:37 +0900
parents 4b87f89b3afd
children bba62c4ac323
comparison
equal deleted inserted replaced
383:6d48db302b07 384:bcdf5476b8e4
5 import rep.REP; 5 import rep.REP;
6 import rep.REPCommand; 6 import rep.REPCommand;
7 import rep.channel.REPSelectionKey; 7 import rep.channel.REPSelectionKey;
8 import rep.channel.REPSocketChannel; 8 import rep.channel.REPSocketChannel;
9 9
10 /**
11 * @author kono
12 * Abstract class for all REP node
13 * Sub classes:
14 * FirstConnector waiting first connection and determines its type.
15 * Editor editor direct connect or no connection (master/slave)
16 * Forwarder send command to the other session manager
17 * base class for other communication node
18 * Dispatcher Session Manager entry, dispatch commands to editors.
19 * NullForwarder REP node with no connection
20 */
10 public abstract class REPNode { 21 public abstract class REPNode {
11 22
12 public int eid; // globally unique 23 public int eid; // globally unique (contains SessionManagerID)
13 public int sid=-1; // globally unique 24 public int sid=-1; // globally unique
14 public String host; 25 public String host;
15 public String file; 26 public String file;
16 public REP mode; 27 public REP mode;
17 public REPSocketChannel<REPCommand> channel; 28 public REPSocketChannel<REPCommand> channel;
18 public REPNode next; 29 public REPNode next;