Mercurial > hg > Database > Christie
view src/main/java/christie/topology/manager/TopologyFinish.java @ 272:b592fe1d4a4e default tip
create example Attendance
author | matac42 <matac@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Jul 2021 20:41:07 +0900 |
parents | 6eb548c188e5 |
children |
line wrap: on
line source
package christie.topology.manager; import christie.annotation.Peek; import christie.annotation.Take; import christie.codegear.CodeGear; import christie.codegear.CodeGearManager; import christie.topology.Message; public class TopologyFinish extends CodeGear { @Take Message FINISHMESSAGE; @Peek TopologyManagerConfig topologyManagerConfig; @Take Long startTime; @Override protected void run(CodeGearManager cgm) { if (topologyManagerConfig.showTime) { System.out.println("TopologymanagerTime = " + (System.currentTimeMillis() - startTime)); } for(String dgm : cgm.getDGMList().keySet()){ getDGM(dgm).put("_CLOSEMESSEAGE", new Message()); getDGM(dgm).shutdown(); } getLocalDGM().finish(); } }