Line data Source code
1 : #ifndef __AGENT_OPER_INSTANCE_MANAGER_ADAPTER_H__ 2 : #define __AGENT_OPER_INSTANCE_MANAGER_ADAPTER_H__ 3 : 4 : #include <string> 5 : #include <boost/uuid/uuid.hpp> 6 : #include "oper/service_instance.h" 7 : #include "oper/instance_task.h" 8 : 9 : class InstanceManagerAdapter { 10 : public: 11 : enum CmdType { 12 : START = 1, 13 : STOP 14 : }; 15 : 16 6 : virtual ~InstanceManagerAdapter() {} 17 : 18 : virtual InstanceTask* CreateStartTask( 19 : const ServiceInstance::Properties &props, bool update) = 0; 20 : virtual InstanceTask* CreateStopTask( 21 : const ServiceInstance::Properties &props) = 0; 22 : virtual bool isApplicable(const ServiceInstance::Properties &props) = 0; 23 : }; 24 : 25 : #endif