OpenSDN source code
LibvirtInstanceAdapter Class Reference

#include <libvirt_instance_adapter.h>

Inheritance diagram for LibvirtInstanceAdapter:
Collaboration diagram for LibvirtInstanceAdapter:

Classes

class  DomainStartTask
 
class  DomainStopTask
 

Public Member Functions

 LibvirtInstanceAdapter (Agent *agent, const std::string &libvirt_conn_addr)
 
 ~LibvirtInstanceAdapter ()
 
InstanceTaskCreateStartTask (const ServiceInstance::Properties &props, bool update)
 
InstanceTaskCreateStopTask (const ServiceInstance::Properties &props)
 
bool isApplicable (const ServiceInstance::Properties &props)
 
- Public Member Functions inherited from InstanceManagerAdapter
virtual ~InstanceManagerAdapter ()
 

Private Member Functions

bool EnsureConnected ()
 
void CloseConnection ()
 
void EnsureDestroyed (const std::string &dom_uuid_str, const ServiceInstance::Properties &si_properties)
 
void UnregisterInterfaces (const ServiceInstance::Properties &si_properties)
 
bool RegisterInterfaces (const ServiceInstance::Properties &si_properties)
 

Static Private Member Functions

static std::string GenIntfName (const std::string &dom_uuid, char type)
 

Private Attributes

Agentagent_
 
std::string libvirt_conn_addr_
 
virConnectPtr conn_
 

Static Private Attributes

static tbb::mutex conn_mutex_
 

Additional Inherited Members

- Public Types inherited from InstanceManagerAdapter
enum  CmdType { START = 1 , STOP }
 

Detailed Description

Definition at line 19 of file libvirt_instance_adapter.h.

Constructor & Destructor Documentation

◆ LibvirtInstanceAdapter()

LibvirtInstanceAdapter::LibvirtInstanceAdapter ( Agent agent,
const std::string &  libvirt_conn_addr 
)
inline

Definition at line 21 of file libvirt_instance_adapter.h.

◆ ~LibvirtInstanceAdapter()

LibvirtInstanceAdapter::~LibvirtInstanceAdapter ( )

Definition at line 121 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

Member Function Documentation

◆ CloseConnection()

void LibvirtInstanceAdapter::CloseConnection ( )
private

Definition at line 400 of file libvirt_instance_adapter.cc.

◆ CreateStartTask()

InstanceTask * LibvirtInstanceAdapter::CreateStartTask ( const ServiceInstance::Properties props,
bool  update 
)
virtual

Implements InstanceManagerAdapter.

Definition at line 125 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

◆ CreateStopTask()

InstanceTask * LibvirtInstanceAdapter::CreateStopTask ( const ServiceInstance::Properties props)
virtual

Implements InstanceManagerAdapter.

Definition at line 135 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

◆ EnsureConnected()

bool LibvirtInstanceAdapter::EnsureConnected ( )
private

Definition at line 284 of file libvirt_instance_adapter.cc.

◆ EnsureDestroyed()

void LibvirtInstanceAdapter::EnsureDestroyed ( const std::string &  dom_uuid_str,
const ServiceInstance::Properties si_properties 
)
private

Definition at line 297 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

◆ GenIntfName()

std::string LibvirtInstanceAdapter::GenIntfName ( const std::string &  dom_uuid,
char  type 
)
staticprivate

Definition at line 279 of file libvirt_instance_adapter.cc.

◆ isApplicable()

bool LibvirtInstanceAdapter::isApplicable ( const ServiceInstance::Properties props)
virtual

Implements InstanceManagerAdapter.

Definition at line 144 of file libvirt_instance_adapter.cc.

◆ RegisterInterfaces()

bool LibvirtInstanceAdapter::RegisterInterfaces ( const ServiceInstance::Properties si_properties)
private

Definition at line 315 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

◆ UnregisterInterfaces()

void LibvirtInstanceAdapter::UnregisterInterfaces ( const ServiceInstance::Properties si_properties)
private

Definition at line 379 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

Member Data Documentation

◆ agent_

Agent* LibvirtInstanceAdapter::agent_
private

Definition at line 107 of file libvirt_instance_adapter.h.

◆ conn_

virConnectPtr LibvirtInstanceAdapter::conn_
private

Definition at line 109 of file libvirt_instance_adapter.h.

◆ conn_mutex_

tbb::mutex LibvirtInstanceAdapter::conn_mutex_
staticprivate

Definition at line 110 of file libvirt_instance_adapter.h.

◆ libvirt_conn_addr_

std::string LibvirtInstanceAdapter::libvirt_conn_addr_
private

Definition at line 108 of file libvirt_instance_adapter.h.


The documentation for this class was generated from the following files: