OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( Agent agent,
const std::string &  libvirt_conn_addr 
)
inline

Definition at line 21 of file libvirt_instance_adapter.h.

LibvirtInstanceAdapter::~LibvirtInstanceAdapter ( )

Definition at line 121 of file libvirt_instance_adapter.cc.

Here is the call graph for this function:

Member Function Documentation

void LibvirtInstanceAdapter::CloseConnection ( )
private

Definition at line 400 of file libvirt_instance_adapter.cc.

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:

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:

bool LibvirtInstanceAdapter::EnsureConnected ( )
private

Definition at line 284 of file libvirt_instance_adapter.cc.

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:

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

Definition at line 279 of file libvirt_instance_adapter.cc.

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

Implements InstanceManagerAdapter.

Definition at line 144 of file libvirt_instance_adapter.cc.

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:

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* LibvirtInstanceAdapter::agent_
private

Definition at line 107 of file libvirt_instance_adapter.h.

virConnectPtr LibvirtInstanceAdapter::conn_
private

Definition at line 109 of file libvirt_instance_adapter.h.

tbb::mutex LibvirtInstanceAdapter::conn_mutex_
staticprivate

Definition at line 110 of file libvirt_instance_adapter.h.

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: