Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/IncomingAbstractHostName.java @ 402:ca2947303438 dispose
one node can work extendsTopology mode
author | sugi |
---|---|
date | Mon, 23 Jun 2014 14:02:36 +0900 |
parents | 8f71c3e6f11d |
children | 539b7f5772c7 |
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); } }