/include/daemonManager.h
https://github.com/deltaforge/nebu-app-hadoop · C Header · 49 lines · 36 code · 13 blank · 0 comment · 0 complexity · 1a5b1dd4a689ea16f581808da89fb42e MD5 · raw file
- #ifndef HADOOPNEBU_DAEMONMANAGER_H_
- #define HADOOPNEBU_DAEMONMANAGER_H_
- #include "nebu-app-framework/daemonCollection.h"
- #include "nebu-app-framework/daemonManager.h"
- #include "nebu/virtualMachine.h"
- #include <string>
- #include <vector>
- namespace nebu
- {
- namespace app
- {
- namespace hadoop
- {
- class DaemonDeployer;
- class DaemonManager : public framework::DaemonManager
- {
- public:
- DaemonManager(std::shared_ptr<framework::DaemonCollection> daemonCollection,
- std::shared_ptr<DaemonDeployer> deployer);
- virtual ~DaemonManager() { };
- virtual void refreshDaemons();
- virtual void deployDaemons();
- virtual void newVMAdded(std::shared_ptr<nebu::common::VirtualMachine> vm);
- virtual void existingVMChanged(std::shared_ptr<nebu::common::VirtualMachine> vm,
- const framework::VMEvent event);
- virtual void oldVMRemoved(const nebu::common::VirtualMachine &vm);
- protected:
- std::shared_ptr<framework::DaemonCollection> daemonCollection;
- std::shared_ptr<DaemonDeployer> deployer;
- bool generatedConfiguration;
- void prepareConfiguration();
- };
- }
- }
- }
- #endif