annotate src/main/java/alice/topology/node/PrepareToAddList.java @ 518:fc313323c53b dispose

add reconnect event
author sugi
date Thu, 22 Jan 2015 16:01:32 +0900
parents a7f140f4bcb1
children 15eeb439830c 767d93626b88 3284428f525e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
516
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
1 package alice.topology.node;
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
2
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
4 import alice.datasegment.CommandType;
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
5 import alice.datasegment.Receiver;
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
6
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
7 public class PrepareToAddList extends CodeSegment {
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
8
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
9 public Receiver info = ids.create(CommandType.TAKE);
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
10 public Receiver info2 = ids.create(CommandType.TAKE);
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
11
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
12 public PrepareToAddList(String key) {
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
13 info.setKey("connection"+key);
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
14 info2.setKey("connection"+key);
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
15 }
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
16
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
17 @Override
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
18 public void run() {
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
19 String connectionName = info.asString();
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
20 ods.put("cMember", connectionName);
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
21 new CreateConnectionList();
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
22 }
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
23
a7f140f4bcb1 add Code Segment (PrepareToAddList)
sugi
parents:
diff changeset
24 }