Mercurial > hg > Database > Alice
view 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 |
line wrap: on
line source
package alice.topology.node; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; import alice.topology.HostMessage; public class IncomingAbstractHostName extends CodeSegment { public Receiver absName = ids.create(CommandType.PEEK); private HostMessage host; // need CodeSegment public IncomingAbstractHostName(HostMessage _host){ host = _host; } @Override public void run() { String absName = this.absName.asString(); IncomingConnectionInfo cs = new IncomingConnectionInfo(absName, 0); cs.hostInfo.setKey("manager", absName); host.setABSName(absName); ods.put("manager","_ABS_IP", host); } }