Commit 592f471a authored by Gergo Ujhelyi's avatar Gergo Ujhelyi
Browse files

implement reconf function


Signed-off-by: Gergo Ujhelyi's avatarGergo Ujhelyi <ujhelyi.gergo@ericsson.com>
parent 40131265
......@@ -1404,6 +1404,22 @@ public class MainController {
public List<Host> get_hosts() {
return hosts;
}
public synchronized boolean start_reconfiguring() {
switch (mc_state) {
case MC_READY:
mc_state = mcStateEnum.MC_RECONFIGURING;
return true;
case MC_LISTENING:
case MC_HC_CONNECTED:
return true;
default:
lock();
error("MainController.start_reconfiguring: called in wrong state.");
unlock();
return false;
}
}
public synchronized void create_mtc(final Host host) {
lock();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment