summaryrefslogtreecommitdiff
path: root/same/src/main/java/com/orbekk
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-04-25 14:53:49 +0200
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-04-25 14:53:49 +0200
commit5c3fa20e73f4f3ae7ab276f6f53dd8f8feb18a48 (patch)
tree91a19d834d98e40996114aa70c0d448a8a7ce652 /same/src/main/java/com/orbekk
parentf298a2b5d9bf388ca319c5f20d669aa94f3c76b2 (diff)
Fix SameController.0.5
– Register network from master controller. – Make fields final.
Diffstat (limited to 'same/src/main/java/com/orbekk')
-rw-r--r--same/src/main/java/com/orbekk/same/SameController.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/same/src/main/java/com/orbekk/same/SameController.java b/same/src/main/java/com/orbekk/same/SameController.java
index 651303c..068ad68 100644
--- a/same/src/main/java/com/orbekk/same/SameController.java
+++ b/same/src/main/java/com/orbekk/same/SameController.java
@@ -13,13 +13,13 @@ import com.orbekk.protobuf.SimpleProtobufServer;
import com.orbekk.same.config.Configuration;
public class SameController {
- private Logger logger = LoggerFactory.getLogger(getClass());
- private SimpleProtobufServer pServer;
- private Master master;
- private Client client;
- private PaxosServiceImpl paxos;
- private Configuration configuration;
- private ConnectionManager connections;
+ private final Logger logger = LoggerFactory.getLogger(getClass());
+ private final SimpleProtobufServer pServer;
+ private volatile Master master;
+ private final Client client;
+ private final PaxosServiceImpl paxos;
+ private final Configuration configuration;
+ private final ConnectionManager connections;
private final RpcFactory rpcf;
/**
@@ -40,6 +40,7 @@ public class SameController {
master.resumeFrom(lastKnownState, masterId);
pServer.registerService(master.getNewService());
master.start();
+ registerNetwork(master);
}
@Override