cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages Class Reference

Public Member Functions

def __init__
def create
 Starts VM's thread.
def delete
 Ends VM's thread.
def reset
 Restarts VM.
def run
 Runs proper action depending on \ self.action.
def terminate

Public Attributes


Detailed Description

Definition at line 38 of file

Constructor & Destructor Documentation

def (   self,
  shared = None 

Definition at line 39 of file

Member Function Documentation

def (   self)

Starts VM's thread.

  1. Gets VM's record from database (basing on vm_id) (if exists).
  2. Copies image chosen for this VM.
  3. Connects to Libvirt and generate template for it.
  4. Creates Libvirt domain.
  5. Sets VM's state as running
  6. If VM is element of farm, it sets proper farm state.

Definition at line 59 of file

def (   self)

Ends VM's thread.

  1. Unassigns public IP.
  2. Deletes VM.

Definition at line 151 of file

def (   self)

Restarts VM.

  1. Connects to Libvirt.
  2. Sets VM's state as restart.
  3. Restarts it.
  4. Sets VM's state back as running.

Definition at line 176 of file

def (   self)

Runs proper action depending on \ self.action.

Definition at line 216 of file

def (   self)

Definition at line 45 of file

Member Data Documentation

Definition at line 42 of file

Definition at line 43 of file

Definition at line 41 of file

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