Mercurial > hg > Database > Alice
comparison src/main/java/alice/topology/node/IncomingAbstractHostName.java @ 345:8f71c3e6f11d
Change directory structure Maven standard
author | sugi |
---|---|
date | Wed, 16 Apr 2014 18:26:07 +0900 |
parents | |
children | ca2947303438 |
comparison
equal
deleted
inserted
replaced
344:9f97ec18f8c5 | 345:8f71c3e6f11d |
---|---|
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 } |