Package ganeti :: Module cmdlib :: Class _QueryBase
[hide private]
[frames] | no frames]

Class _QueryBase

source code

Base for query utility classes.

Instance Methods [hide private]
 
__init__(self, names, fields, use_locking)
Initializes this class.
source code
 
_GetNames(self, lu, all_names, lock_level)
Helper function to determine names asked for in the query.
source code
 
ExpandNames(self, lu)
Expand names for this query.
source code
 
DeclareLocks(self, lu, level)
Declare locks for this query.
source code
 
_GetQueryData(self, lu)
Collects all data for this query.
source code
 
NewStyleQuery(self, lu)
Collect data and execute query.
source code
 
OldStyleQuery(self, lu)
Collect data and execute query.
source code
Class Methods [hide private]
 
FieldsQuery(cls, fields)
Returns list of available fields.
source code
Class Variables [hide private]
  FIELDS = None
Attribute holding field definitions
Method Details [hide private]

FieldsQuery(cls, fields)
Class Method

source code 

Returns list of available fields.

Returns:
List of objects.QueryFieldDefinition

ExpandNames(self, lu)

source code 

Expand names for this query.

See LogicalUnit.ExpandNames.

DeclareLocks(self, lu, level)

source code 

Declare locks for this query.

See LogicalUnit.DeclareLocks.

_GetQueryData(self, lu)

source code 

Collects all data for this query.

Returns:
Query data object