Mercurial > hg > Database > Alice
view src/main/java/alice/topology/HostMessage.java @ 584:8f765e3eed24 dispose
add Topology Manager Number to Topology Node Key
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 27 Jan 2016 18:10:50 +0900 |
parents | ffa43f252492 |
children |
line wrap: on
line source
package alice.topology; import org.msgpack.annotation.Message; @Message public class HostMessage { public String name; public int port; public int topMNum = 0;//複数のTopMに接続する際、どのTopMのノードかを識別する public String connectionName;//"parent" or "child"+num public String absName; // this is absName which have these IP and port. public String reverseName;//"parent" or "child"+num public String remoteAbsName;//nodeName public String cookie; // MD5 public boolean alive; public HostMessage() { } public HostMessage(String name, int port, int topMNum) { this.name = name; this.port = port; this.topMNum = topMNum; } public HostMessage(String name, int port, String connectionName, String reverseName) { this.name = name; this.port = port; this.connectionName = connectionName; this.reverseName = reverseName; } public boolean isAlive() { return alive; } }