49
|
1 package christie.topology.node;
|
|
2
|
|
3
|
|
4 import christie.annotation.Peek;
|
|
5 import christie.codegear.CodeGear;
|
|
6 import christie.codegear.CodeGearManager;
|
|
7
|
|
8 public class IncomingAbstractHostName extends CodeGear {
|
|
9
|
|
10 private final TopologyNodeConfig conf;
|
|
11 @Peek
|
|
12 String host;
|
|
13
|
|
14 public IncomingAbstractHostName(TopologyNodeConfig conf) {
|
|
15 this.conf = conf;
|
|
16 }
|
|
17
|
|
18 @Override
|
|
19 protected void run(CodeGearManager cgm) {
|
|
20 cgm.setup(new IncomingConnectionInfo(host, 0, conf.getManagerKey()));
|
|
21 }
|
|
22
|
|
23 }
|