Mercurial > hg > Database > Alice
view src/alice/topology/node/IncomingAbstractHostName.java @ 267:fac206b7849c
create Send/Receive Error class
author | sugi |
---|---|
date | Sat, 17 Aug 2013 18:55:19 +0900 |
parents | c0712e0b0a24 |
children | 709936c00c89 |
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); } }