view src/alice/test/topology/share/Client.java @ 96:a5fce70380e8 working

add share test
author sugi
date Tue, 19 Jun 2012 17:52:01 +0900
parents
children
line wrap: on
line source

package alice.test.topology.share;

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

public class Client extends CodeSegment {
	Receiver host = ids.create(CommandType.PEEK);
	
	public Client(){
		host.setKey("local","others");
	}
	
	@Override
	public void run(){
		System.out.println(host.asString());
		ods.update("local", "fish", 0);
		new RelayPoint("fish");
	}
}