Package ganeti :: Package watcher :: Class Instance
[hide private]
[frames] | no frames]

Class Instance

source code


Abstraction for a Virtual Machine instance.

Instance Methods [hide private]
 
__init__(self, name, status, config_state, config_state_source, disks_active, snodes)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
Restart(self, cl)
Encapsulates the start of an instance.
source code
 
ActivateDisks(self, cl)
Encapsulates the activation of all disks of an instance.
source code
bool
NeedsCleanup(self)
Determines whether the instance needs cleanup.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, status, config_state, config_state_source, disks_active, snodes)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

NeedsCleanup(self)

source code 

Determines whether the instance needs cleanup.

Determines whether the instance needs cleanup after having been shutdown by the user.

Returns: bool
True if the instance needs cleanup, False otherwise.