Package ganeti :: Module query :: Class GroupQueryData
[hide private]
[frames] | no frames]

Class GroupQueryData

source code


Data container for node group data queries.

Instance Methods [hide private]
 
__init__(self, cluster, groups, group_to_nodes, group_to_instances, want_diskparams)
Initializes this class.
source code
 
__iter__(self)
Iterate over all node groups.
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, cluster, groups, group_to_nodes, group_to_instances, want_diskparams)
(Constructor)

source code 

Initializes this class.

Parameters:
  • cluster - Cluster object
  • groups - List of node group objects
  • group_to_nodes (dict; group UUID as key) - Per-group list of nodes
  • group_to_instances (dict; group UUID as key) - Per-group list of (primary) instances
  • want_diskparams (bool) - Whether diskparamters should be calculated
Overrides: object.__init__

__iter__(self)

source code 

Iterate over all node groups.

This function has side-effects and only one instance of the resulting generator should be used at a time.