#include <instance_manager.h>
|
void | RegisterSigHandler () |
|
void | InitSigHandler (AgentSignal *signal) |
|
InstanceManagerAdapter * | FindApplicableAdapter (const ServiceInstance::Properties &props) |
|
void | StartServiceInstance (ServiceInstance *svc_instance, InstanceState *state, bool update) |
|
void | StopServiceInstance (ServiceInstance *svc_instance, InstanceState *state) |
|
void | StopStaleNetNS (ServiceInstance::Properties &props) |
|
void | OnError (InstanceTask *task, const std::string errors) |
|
void | OnExit (InstanceTask *task, const boost::system::error_code &ec) |
|
void | RegisterSvcInstance (InstanceTask *task, ServiceInstance *svc_instance) |
|
void | UnregisterSvcInstance (ServiceInstance *svc_instance) |
|
ServiceInstance * | UnregisterSvcInstance (InstanceTask *task) |
|
ServiceInstance * | GetSvcInstance (InstanceTask *task) const |
|
InstanceTaskQueue * | GetTaskQueue (const std::string &str) |
|
void | Enqueue (InstanceTask *task, const boost::uuids::uuid &uuid) |
|
void | ScheduleNextTask (InstanceTaskQueue *task_queue) |
|
bool | StartTask (InstanceTaskQueue *task_queue, InstanceTask *task) |
|
InstanceState * | GetState (InstanceTask *task) const |
|
void | SetState (ServiceInstance *svc_instance, InstanceState *state) |
|
void | ClearState (ServiceInstance *svc_instance) |
|
bool | DeleteState (ServiceInstance *svc_instance) |
|
void | UpdateStateStatusType (InstanceManagerChildEvent event) |
|
void | SetLastCmdType (ServiceInstance *svc_instance, int last_cmd_type) |
|
int | GetLastCmdType (ServiceInstance *svc_instance) const |
|
void | ClearLastCmdType (ServiceInstance *svc_instance) |
|
void | OnTaskTimeout (InstanceTaskQueue *task_queue) |
|
void | OnErrorEventHandler (InstanceManagerChildEvent event) |
|
void | OnExitEventHandler (InstanceManagerChildEvent event) |
|
void | OnTaskTimeoutEventHandler (InstanceManagerChildEvent event) |
|
void | StateClear () |
|
void | EventObserver (DBTablePartBase *db_part, DBEntryBase *entry) |
|
| DISALLOW_COPY_AND_ASSIGN (InstanceManager) |
|
Definition at line 33 of file instance_manager.h.
Enumerator |
---|
OnErrorEvent |
|
OnTaskTimeoutEvent |
|
OnExitEvent |
|
Definition at line 40 of file instance_manager.h.
InstanceManager::InstanceManager |
( |
Agent * |
agent | ) |
|
InstanceManager::~InstanceManager |
( |
| ) |
|
int InstanceManager::GetLastCmdType |
( |
ServiceInstance * |
svc_instance | ) |
const |
|
private |
void InstanceManager::Initialize |
( |
DB * |
database, |
|
|
const std::string & |
netns_cmd, |
|
|
const std::string & |
docker_cmd, |
|
|
const int |
netns_workers, |
|
|
const int |
netns_timeout |
|
) |
| |
void InstanceManager::InitSigHandler |
( |
AgentSignal * |
signal | ) |
|
|
private |
void InstanceManager::OnError |
( |
InstanceTask * |
task, |
|
|
const std::string |
errors |
|
) |
| |
|
private |
void InstanceManager::OnExit |
( |
InstanceTask * |
task, |
|
|
const boost::system::error_code & |
ec |
|
) |
| |
|
private |
void InstanceManager::RegisterSigHandler |
( |
| ) |
|
|
private |
void InstanceManager::SetLastCmdType |
( |
ServiceInstance * |
svc_instance, |
|
|
int |
last_cmd_type |
|
) |
| |
|
private |
void InstanceManager::SetNamespaceStorePath |
( |
std::string |
path | ) |
|
void InstanceManager::SetNetNSCmd |
( |
const std::string & |
netns_cmd | ) |
|
void InstanceManager::SetStaleTimerInterval |
( |
int |
minutes | ) |
|
bool InstanceManager::StaleTimeout |
( |
| ) |
|
int InstanceManager::StaleTimerInterval |
( |
| ) |
|
|
inline |
void InstanceManager::StateClear |
( |
| ) |
|
|
private |
void InstanceManager::Terminate |
( |
| ) |
|
void InstanceManager::UnregisterSvcInstance |
( |
ServiceInstance * |
svc_instance | ) |
|
|
private |
friend class InstanceManagerTest |
|
friend |
Agent* InstanceManager::agent_ |
|
private |
const int InstanceManager::kReattemptsDefault = 2 |
|
static |
const int InstanceManager::kTimeoutDefault = 30 |
|
static |
const int InstanceManager::kWorkersDefault = 1 |
|
static |
std::map<std::string, int> InstanceManager::last_cmd_types_ |
|
private |
std::string InstanceManager::loadbalancer_config_path_ |
|
private |
std::string InstanceManager::namespace_store_path_ |
|
private |
std::string InstanceManager::netns_cmd_ |
|
private |
int InstanceManager::netns_reattempts_ |
|
private |
int InstanceManager::netns_timeout_ |
|
private |
Timer* InstanceManager::stale_timer_ |
|
private |
int InstanceManager::stale_timer_interval_ |
|
private |
The documentation for this class was generated from the following files: