Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/CreateConnectionList.java @ 518:fc313323c53b dispose
add reconnect event
author | sugi |
---|---|
date | Thu, 22 Jan 2015 16:01:32 +0900 |
parents | aefbe41fcf12 |
children | 15eeb439830c 767d93626b88 3284428f525e 8d9f35701fdb |
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); } }