PageRenderTime 35ms CodeModel.GetById 20ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/include/nameNodeDaemon.h

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