Revision 978d1538 src/nebula/Nebula.cc
src/nebula/Nebula.cc | ||
---|---|---|
689 | 689 |
Client::initialize("", get_master_oned(), msg_size, timeout); |
690 | 690 |
} |
691 | 691 |
|
692 |
// ---- Raft Manager ---- |
|
692 |
// ---- Hook Manager ---- |
|
693 |
try |
|
694 |
{ |
|
695 |
vector<const VectorAttribute *> hm_mads; |
|
696 |
|
|
697 |
nebula_configuration->get("HM_MAD", hm_mads); |
|
698 |
|
|
699 |
hm = new HookManager(hm_mads,vmpool); |
|
700 |
} |
|
701 |
catch (bad_alloc&) |
|
702 |
{ |
|
703 |
throw; |
|
704 |
} |
|
705 |
|
|
706 |
rc = hm->start(); |
|
707 |
|
|
708 |
if ( rc != 0 ) |
|
709 |
{ |
|
710 |
throw runtime_error("Could not start the Hook Manager"); |
|
711 |
} |
|
712 |
|
|
713 |
if (hm->load_mads(0) != 0) |
|
714 |
{ |
|
715 |
goto error_mad; |
|
716 |
} |
|
717 |
|
|
693 | 718 |
|
719 |
// ---- Raft Manager ---- |
|
694 | 720 |
const VectorAttribute * raft_leader_hook; |
695 | 721 |
const VectorAttribute * raft_follower_hook; |
696 | 722 |
|
... | ... | |
864 | 890 |
throw runtime_error("Could not start the Dispatch Manager"); |
865 | 891 |
} |
866 | 892 |
|
867 |
// ---- Hook Manager ---- |
|
868 |
try |
|
869 |
{ |
|
870 |
vector<const VectorAttribute *> hm_mads; |
|
871 |
|
|
872 |
nebula_configuration->get("HM_MAD", hm_mads); |
|
873 |
|
|
874 |
hm = new HookManager(hm_mads,vmpool); |
|
875 |
} |
|
876 |
catch (bad_alloc&) |
|
877 |
{ |
|
878 |
throw; |
|
879 |
} |
|
880 |
|
|
881 |
rc = hm->start(); |
|
882 |
|
|
883 |
if ( rc != 0 ) |
|
884 |
{ |
|
885 |
throw runtime_error("Could not start the Hook Manager"); |
|
886 |
} |
|
887 |
|
|
888 | 893 |
// ---- Auth Manager ---- |
889 | 894 |
try |
890 | 895 |
{ |
... | ... | |
987 | 992 |
// Load mads |
988 | 993 |
// ----------------------------------------------------------- |
989 | 994 |
|
990 |
sleep(1);
|
|
995 |
usleep(2500000);
|
|
991 | 996 |
|
992 | 997 |
rc = 0; |
993 | 998 |
|
... | ... | |
1006 | 1011 |
goto error_mad; |
1007 | 1012 |
} |
1008 | 1013 |
|
1009 |
if (hm->load_mads(0) != 0) |
|
1010 |
{ |
|
1011 |
goto error_mad; |
|
1012 |
} |
|
1013 |
|
|
1014 | 1014 |
if (imagem->load_mads(0) != 0) |
1015 | 1015 |
{ |
1016 | 1016 |
goto error_mad; |
Also available in: Unified diff