Mercurial > hg > Database > Alice
comparison src/alice/topology/node/TopologyNode.java @ 26:9c6b9e032338
implements TopologyNode
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Jan 2012 03:11:23 +0900 |
parents | 50c75cb3de60 |
children | b5a21baf0b07 |
comparison
equal
deleted
inserted
replaced
25:50c75cb3de60 | 26:9c6b9e032338 |
---|---|
1 package alice.topology.node; | 1 package alice.topology.node; |
2 | 2 |
3 import alice.codesegment.CodeSegment; | |
3 import alice.daemon.AliceDaemon; | 4 import alice.daemon.AliceDaemon; |
4 | 5 |
5 public class TopologyNode { | 6 public class TopologyNode { |
6 | 7 |
7 public TopologyNode(String[] args, TopologyNodeConfig conf) { | 8 public TopologyNode(String[] args, TopologyNodeConfig conf, Class<CodeSegment> clazz) { |
8 new AliceDaemon(conf).listen(); | 9 new AliceDaemon(conf).listen(); |
9 new StartTopologyNode(conf).execute(); | 10 new StartTopologyNode(conf, clazz).execute(); |
10 } | 11 } |
11 | 12 |
12 public static void main(String[] args) { | 13 public static void main(String[] args) { |
13 TopologyNodeConfig conf = new TopologyNodeConfig(args); | 14 TopologyNodeConfig conf = new TopologyNodeConfig(args); |
14 TopologyNode node = new TopologyNode(args, conf); | 15 TopologyNode node = new TopologyNode(args, conf, null); |
15 } | 16 } |
16 | 17 |
17 } | 18 } |