Mercurial > hg > Members > tatsuki > Alice
comparison src/main/java/alice/topology/HostMessage.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
344:9f97ec18f8c5 | 345:8f71c3e6f11d |
---|---|
1 package alice.topology; | |
2 | |
3 import org.msgpack.annotation.Message; | |
4 | |
5 @Message | |
6 public class HostMessage { | |
7 | |
8 public String name; | |
9 public int port; | |
10 public String connectionName; | |
11 public String reverseName; | |
12 public String absName; | |
13 public boolean reconnectFlag = false; | |
14 | |
15 public HostMessage() { } | |
16 public HostMessage(String name, int port) { | |
17 this.name = name; | |
18 this.port = port; | |
19 } | |
20 | |
21 public HostMessage(String name, int port, String connectionName, String reverseName) { | |
22 this.name = name; | |
23 this.port = port; | |
24 this.connectionName = connectionName; | |
25 this.reverseName = reverseName; | |
26 } | |
27 | |
28 public void setABSName(String name){ | |
29 absName = name; | |
30 } | |
31 | |
32 public String getABSName(){ | |
33 return absName; | |
34 } | |
35 | |
36 public void setFlag(){ | |
37 this.reconnectFlag = true; | |
38 } | |
39 | |
40 } |