Mercurial > hg > Database > Alice
view src/main/java/alice/topology/manager/TopologyFinish.java @ 655:1c93e82e05c6 default tip
fix timestamp
author | suruga |
---|---|
date | Sat, 17 Feb 2018 00:33:00 +0900 |
parents | aefbe41fcf12 |
children |
line wrap: on
line source
package alice.topology.manager; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class TopologyFinish extends CodeSegment { public Receiver finish = ids.create(CommandType.TAKE); public Receiver config = ids.create(CommandType.PEEK); public Receiver startTime = ids.create(CommandType.TAKE); @Override public void run() { TopologyManagerConfig conf = config.asClass(TopologyManagerConfig.class); long start = startTime.asClass(Long.class); if (conf.showTime) { System.out.println("TopologymanagerTime = "+ (System.currentTimeMillis()-start)); } System.exit(0); } }