Mercurial > hg > RemoteEditor > REPSessionManager
diff 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 |
line wrap: on
line diff
--- a/rep/handler/REPNode.java Mon Nov 10 22:13:40 2008 +0900 +++ b/rep/handler/REPNode.java Mon Nov 10 22:16:37 2008 +0900 @@ -7,10 +7,21 @@ import rep.channel.REPSelectionKey; import rep.channel.REPSocketChannel; +/** + * @author kono + * Abstract class for all REP node + * Sub classes: + * FirstConnector waiting first connection and determines its type. + * Editor editor direct connect or no connection (master/slave) + * Forwarder send command to the other session manager + * base class for other communication node + * Dispatcher Session Manager entry, dispatch commands to editors. + * NullForwarder REP node with no connection + */ public abstract class REPNode { - public int eid; // globally unique - public int sid=-1; // globally unique + public int eid; // globally unique (contains SessionManagerID) + public int sid=-1; // globally unique public String host; public String file; public REP mode;