Rev 1945 | Rev 1956 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1945 | Rev 1947 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | #include "can/Network.h" |
37 | #include "can/Network.h" |
| 38 | #include "can/Monitor.h" |
38 | #include "can/Monitor.h" |
| 39 | #include "can/CanDaemon.h" |
39 | #include "can/CanDaemon.h" |
| 40 | #include "vm/Manager.h" |
40 | #include "vm/Manager.h" |
| 41 | #include "storage/Manager.h" |
41 | #include "storage/Manager.h" |
| 42 | #include "mbb/Manager.h" |
- | |
| 43 | 42 | ||
| 44 | #include "vm/plugin/System.h" |
43 | #include "vm/plugin/System.h" |
| 45 | #include "vm/plugin/Timer.h" |
44 | #include "vm/plugin/Timer.h" |
| 46 | #include "vm/plugin/Module.h" |
45 | #include "vm/plugin/Module.h" |
| 47 | #include "vm/plugin/Node.h" |
46 | #include "vm/plugin/Node.h" |
| 48 | #include "vm/plugin/Console.h" |
47 | #include "vm/plugin/Console.h" |
| 49 | #include "vm/plugin/Storage.h" |
48 | #include "vm/plugin/Storage.h" |
| 50 | #include "vm/plugin/Socket.h" |
49 | #include "vm/plugin/Socket.h" |
| - | 50 | #include "vm/plugin/Mbb.h" |
|
| 51 | 51 | ||
| 52 | #ifdef USE_PLUGIN_XORG |
52 | #ifdef USE_PLUGIN_XORG |
| 53 | #include "vm/plugin/Xorg.h" |
53 | #include "vm/plugin/Xorg.h" |
| 54 | #endif // USE_PLUGIN_XORG |
54 | #endif // USE_PLUGIN_XORG |
| 55 | 55 | ||
| Line 110... | Line 110... | ||
| 110 | 110 | ||
| 111 | LOG.Info("Deamon mode entered successfully!"); |
111 | LOG.Info("Deamon mode entered successfully!"); |
| 112 | } |
112 | } |
| 113 | 113 | ||
| 114 | storage::Manager::Create(); |
114 | storage::Manager::Create(); |
| 115 | - | ||
| 116 | timer::Manager::Create(); |
115 | timer::Manager::Create(); |
| 117 | broker::Manager::Create(); |
116 | broker::Manager::Create(); |
| 118 | net::Manager::Create(); |
117 | net::Manager::Create(); |
| 119 | can::Protocol::Create(); |
118 | can::Protocol::Create(); |
| 120 | control::Manager::Create(); |
119 | control::Manager::Create(); |
| 121 | vm::Manager::Create(); |
120 | vm::Manager::Create(); |
| 122 | - | ||
| 123 | if (config::Manager::Instance()->Exist("MbbPort")) |
- | |
| 124 | { |
- | |
| 125 | mbb::Manager::Create(config::Manager::Instance()->GetAsInt("MbbPort")); |
- | |
| 126 | } |
- | |
| 127 | 121 | ||
| 128 | storage::Manager::Instance()->SetRootPath(config::Manager::Instance()->GetAsString("StoragePath")); |
122 | storage::Manager::Instance()->SetRootPath(config::Manager::Instance()->GetAsString("StoragePath")); |
| 129 | 123 | ||
| 130 | can::Protocol::Instance()->Load(config::Manager::Instance()->GetAsString("ProtocolFile")); |
124 | can::Protocol::Instance()->Load(config::Manager::Instance()->GetAsString("ProtocolFile")); |
| 131 | 125 | ||
| Line 141... | Line 135... | ||
| 141 | 135 | ||
| 142 | subscribers.push_back(control::Manager::Instance()); |
136 | subscribers.push_back(control::Manager::Instance()); |
| 143 | 137 | ||
| 144 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::System(vm::Manager::Instance()->GetIoService()))); |
138 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::System(vm::Manager::Instance()->GetIoService()))); |
| 145 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Console(vm::Manager::Instance()->GetIoService(), config::Manager::Instance()->GetAsInt("CommandPort")))); |
139 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Console(vm::Manager::Instance()->GetIoService(), config::Manager::Instance()->GetAsInt("CommandPort")))); |
| - | 140 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Mbb(vm::Manager::Instance()->GetIoService(), config::Manager::Instance()->GetAsInt("MbbPort")))); |
|
| 146 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Storage(vm::Manager::Instance()->GetIoService()))); |
141 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Storage(vm::Manager::Instance()->GetIoService()))); |
| 147 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Timer(vm::Manager::Instance()->GetIoService()))); |
142 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Timer(vm::Manager::Instance()->GetIoService()))); |
| 148 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Module(vm::Manager::Instance()->GetIoService()))); |
143 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Module(vm::Manager::Instance()->GetIoService()))); |
| 149 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Node(vm::Manager::Instance()->GetIoService()))); |
144 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Node(vm::Manager::Instance()->GetIoService()))); |
| 150 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Socket(vm::Manager::Instance()->GetIoService()))); |
145 | vm::Manager::Instance()->AddPlugin(vm::Plugin::Pointer(new vm::plugin::Socket(vm::Manager::Instance()->GetIoService()))); |
| Line 188... | Line 183... | ||
| 188 | 183 | ||
| 189 | subscribers.clear(); |
184 | subscribers.clear(); |
| 190 | config::Manager::Delete(); |
185 | config::Manager::Delete(); |
| 191 | timer::Manager::Delete(); |
186 | timer::Manager::Delete(); |
| 192 | control::Manager::Delete(); |
187 | control::Manager::Delete(); |
| 193 | mbb::Manager::Delete(); |
- | |
| 194 | can::Protocol::Delete(); |
188 | can::Protocol::Delete(); |
| 195 | broker::Manager::Delete(); |
189 | broker::Manager::Delete(); |
| 196 | vm::Manager::Delete(); |
190 | vm::Manager::Delete(); |
| 197 | net::Manager::Delete(); |
191 | net::Manager::Delete(); |
| 198 | storage::Manager::Delete(); |
192 | storage::Manager::Delete(); |