Package archipel :: Module archipelHypervisor :: Class TNThreadedVirtualMachine
[hide private]
[frames] | no frames]

Class TNThreadedVirtualMachine

source code

        object --+        
                 |        
threading._Verbose --+    
                     |    
      threading.Thread --+
                         |
                        TNThreadedVirtualMachine

This class is used to run ArchipelVirtualMachine main loop in a thread.

Instance Methods [hide private]
 
__init__(self, jid, password, hypervisor, configuration, name, organizationInfo)
The contructor of the class.
source code
ArchipelVirtualMachine
get_instance(self)
This method returns the current TNArchipelVirtualMachine instance.
source code
 
run(self)
Overiddes super class method.
source code

Inherited from threading.Thread: __repr__, daemon, getName, ident, isAlive, isDaemon, is_alive, join, name, setDaemon, setName, start

Inherited from threading.Thread (private): _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, jid, password, hypervisor, configuration, name, organizationInfo)
(Constructor)

source code 

The contructor of the class.

Parameters:
  • jid (string) - the jid of the TNArchipelVirtualMachine
  • password (string) - the password associated to the JID
  • hypervisor (TNArchipelHypervisor) - the hypervisor of the VM
  • name (string) - the name of the VM
  • organizationInfo (Dict) - Dict containing locality, company name, company unit and owner
Overrides: object.__init__

get_instance(self)

source code 

This method returns the current TNArchipelVirtualMachine instance.

Returns: ArchipelVirtualMachine
the ArchipelVirtualMachine instance

run(self)

source code 

Overiddes super class method. Do the TNArchipelVirtualMachine main loop.

Overrides: threading.Thread.run