Mercurial > hg > Database > Christie
view src/main/java/christie/topology/HostMessage.java @ 50:8dfd93810041
fix config and HostMessage
author | akahori |
---|---|
date | Thu, 23 Aug 2018 09:30:36 +0900 |
parents | 342931aea0b8 |
children | f884c1bd0d36 |
line wrap: on
line source
package christie.topology; import org.msgpack.annotation.Message; @Message public class HostMessage { public String hostName; public int port; public String connectionName; public String absName; // this is absName which have these IP and port. public String reverseName; public String remoteAbsName; public String cookie; // MD5 public boolean alive; public HostMessage() { } public HostMessage(String name, int port) { this.hostName = name; this.port = port; } public HostMessage(String name, int port, String connectionName, String reverseName) { this.hostName = name; this.port = port; this.connectionName = connectionName; this.reverseName = reverseName; } public boolean isAlive() { return alive; } public String toString() { return "HostMessage : name = " + hostName + ", port = " + Integer.toString(port) + " connectionName = " + connectionName + " absName = " + absName + "reverseName = " + reverseName + " remoteAbsName = " + remoteAbsName + " cokkie = " + cookie ; } }