Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/CreateConnectionList.java @ 416:6508ed6ea6a6 dispose
create Connection List in CreateConnection CodeSegment
author | sugi |
---|---|
date | Wed, 09 Jul 2014 03:45:14 +0900 |
parents | |
children | aefbe41fcf12 |
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(info.key, cList); } }