annotate src/main/java/christie/topology/node/IncomingAbstractHostName.java @ 61:20d4c0cce914

refactor Topology Node
author akahori
date Tue, 28 Aug 2018 18:56:45 +0900
parents fd944876257b
children 5deea416f980
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
1 package christie.topology.node;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
2
fd944876257b add node and keepalive
akahori
parents:
diff changeset
3
fd944876257b add node and keepalive
akahori
parents:
diff changeset
4 import christie.annotation.Peek;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
5 import christie.codegear.CodeGear;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
6 import christie.codegear.CodeGearManager;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
7
fd944876257b add node and keepalive
akahori
parents:
diff changeset
8 public class IncomingAbstractHostName extends CodeGear {
fd944876257b add node and keepalive
akahori
parents:
diff changeset
9
fd944876257b add node and keepalive
akahori
parents:
diff changeset
10 private final TopologyNodeConfig conf;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
11 @Peek
fd944876257b add node and keepalive
akahori
parents:
diff changeset
12 String host;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
13
fd944876257b add node and keepalive
akahori
parents:
diff changeset
14 public IncomingAbstractHostName(TopologyNodeConfig conf) {
fd944876257b add node and keepalive
akahori
parents:
diff changeset
15 this.conf = conf;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
16 }
fd944876257b add node and keepalive
akahori
parents:
diff changeset
17
fd944876257b add node and keepalive
akahori
parents:
diff changeset
18 @Override
fd944876257b add node and keepalive
akahori
parents:
diff changeset
19 protected void run(CodeGearManager cgm) {
fd944876257b add node and keepalive
akahori
parents:
diff changeset
20 cgm.setup(new IncomingConnectionInfo(host, 0, conf.getManagerKey()));
fd944876257b add node and keepalive
akahori
parents:
diff changeset
21 }
fd944876257b add node and keepalive
akahori
parents:
diff changeset
22
fd944876257b add node and keepalive
akahori
parents:
diff changeset
23 }