view src/alice/topology/node/Start.java @ 183:75150396681c working

use synchronizedList
author e095732
date Tue, 26 Feb 2013 14:24:23 +0900
parents f84e1684c6be
children
line wrap: on
line source

package alice.topology.node;

import org.apache.log4j.Logger;

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

public class Start extends CodeSegment {
	
	public Receiver done = ids.create(CommandType.PEEK);
	private Logger logger = Logger.getLogger(Start.class);
	private CodeSegment startCS;
	
	public Start(CodeSegment startCS) {
		this.startCS = startCS;
	}
	
	@Override
	public void run() {
		logger.info("Configuration finished.");
		if (startCS == null)
			return;
		startCS.execute();
		
	}

}