345
|
1 package alice.topology.node;
|
|
2
|
|
3 import alice.codesegment.CodeSegment;
|
|
4 import alice.datasegment.CommandType;
|
|
5 import alice.datasegment.Receiver;
|
|
6 import alice.topology.HostMessage;
|
|
7
|
|
8 public class IncomingAbstractHostName extends CodeSegment {
|
|
9
|
|
10 public Receiver absName = ids.create(CommandType.PEEK);
|
|
11 private HostMessage host; // need CodeSegment
|
|
12
|
|
13 public IncomingAbstractHostName(HostMessage _host){
|
|
14 host = _host;
|
|
15 }
|
|
16
|
|
17 @Override
|
|
18 public void run() {
|
|
19 String absName = this.absName.asString();
|
|
20 IncomingConnectionInfo cs = new IncomingConnectionInfo(absName, 0);
|
|
21 cs.hostInfo.setKey("manager", absName);
|
|
22 host.setABSName(absName);
|
|
23 ods.put("manager","_ABS_IP", host);
|
|
24 }
|
|
25
|
|
26 }
|