view src/main/java/alice/test/codesegment/local/StartCodeSegment.java @ 393:38021fceabef draft multicast

test commit
author tatsuki
date Tue, 17 Jun 2014 17:39:47 +0900
parents 8f71c3e6f11d
children
line wrap: on
line source

package alice.test.codesegment.local;

import alice.codesegment.CodeSegment;

public class StartCodeSegment extends CodeSegment {

	@Override
	public void run() {
		System.out.println("run StartCodeSegment");
		
		TestCodeSegment cs = new TestCodeSegment();
		cs.arg1.setKey("key1"); // unbound datasegment key1 is created and connect to cs.
								// cs is waiting for local.key1
		System.out.println("create TestCodeSegment");
		
		ods.update("local", "key1", "String data"); // bind string data to datasegment local.key1
													// this startup TestCodeSegment.
 	}

}