| 2 | #include "system/customer.h" |
| 3 | namespace PS { |
| 4 | class App : public Customer { |
| 5 | public: |
| 6 | App(const string& name = FLAGS_app_name) : Customer(name) { } |
| 7 | virtual ~App() { } |
| 8 | |
| 9 | // factory functionn |
| 10 | static App* create(const std::string& name, const std::string& conf); |
| 11 | |
| 12 | // init() is called after this app has been created at all nodes. |
| 13 | virtual void init() { } |
| 14 | |
| 15 | // run() is executed after all nodes have been executed init() |
| 16 | virtual void run() { } |
| 17 | |
| 18 | }; |
| 19 | |
| 20 | } // namespace PS |
nothing calls this directly
no outgoing calls
no test coverage detected