Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/CreateConnectionList.java @ 655:1c93e82e05c6 default tip
fix timestamp
author | suruga |
---|---|
date | Sat, 17 Feb 2018 00:33:00 +0900 |
parents | 8d9f35701fdb |
children |
line wrap: on
line source
package alice.topology.node; import java.util.List; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class CreateConnectionList extends CodeSegment { private Receiver info = ids.create(CommandType.TAKE); // connection List private Receiver info1 = ids.create(CommandType.TAKE); // connection names public CreateConnectionList() { info.setKey("_CLIST"); info1.setKey("cMember"); } @Override public void run() { @SuppressWarnings("unchecked") List<String> clist = info.asClass(List.class); String name = info1.asString(); clist.add(name); ods.update("_CLIST", clist); } }