PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/include/mongocfgDaemon.h

https://github.com/deltaforge/nebu-app-mongo
C Header | 34 lines | 25 code | 9 blank | 0 comment | 0 complexity | 1bb0d161f39c95b618339da7341a9669 MD5 | raw file
 1
 2#ifndef NEBUAPPMONGO_MONGOCFGDAEMON_H_
 3#define NEBUAPPMONGO_MONGOCFGDAEMON_H_
 4
 5#include "mongoDaemon.h"
 6
 7namespace nebu
 8{
 9	namespace app
10	{
11		namespace mongo
12		{
13
14			class MongocfgDaemon : public MongoDaemon
15			{
16			public:
17				MongocfgDaemon(std::shared_ptr<nebu::common::VirtualMachine> hostVM, int portNo) :
18					MongoDaemon(hostVM, portNo) { }
19				virtual ~MongocfgDaemon() { }
20
21				virtual bool launch();
22
23				virtual framework::DaemonType getType() const
24				{
25					return MongoDaemonType::CONFIG_SERVER;
26				}
27			};
28
29		}
30	}
31}
32
33#endif
34