view src/alice/topology/node/IncomingAbstractHostName.java @ 33:20c67f673224

change name of DataSegmentReceiver
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Wed, 18 Jan 2012 01:34:23 +0900
parents 2bfb796b0fa1
children ca079a730d0b
line wrap: on
line source

package alice.topology.node;

import alice.codesegment.CodeSegment;
import alice.datasegment.CommandType;
import alice.datasegment.Receiver;

public class IncomingAbstractHostName extends CodeSegment {

	public Receiver absName = ids.create(CommandType.PEEK);

	@Override
	public void run() {
		String absName = this.absName.val.asRawValue().getString();
		IncomingConnectionInfo cs = new IncomingConnectionInfo(absName, 0);
		cs.hostInfo.setKey("manager", absName);
	}

}