Mercurial > hg > Database > Alice
view src/alice/topology/manager/keeparive/CreateSchedule.java @ 324:806cc010a5bd
remove enqueue bug.
author | one |
---|---|
date | Tue, 24 Dec 2013 18:30:13 +0900 |
parents | d746c4486287 |
children | cf9072608fe4 |
line wrap: on
line source
package alice.topology.manager.keeparive; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class CreateSchedule extends CodeSegment{ private Receiver info1 = ids.create(CommandType.TAKE); // WaitingList private Receiver info2 = ids.create(CommandType.TAKE); // TaskInfo public CreateSchedule(){ info1.setKey("_WAITINGLIST"); info2.setKey("_TASKINFO"); } @Override public void run() { ListManager manager = info1.asClass(ListManager.class); TaskInfo newTask = info2.asClass(TaskInfo.class); System.out.println("addTask"); manager.addTask(newTask); ods.update("_WAITINGLIST", manager); new CheckExistTask(); } }