Package ganeti :: Package confd :: Module querylib :: Class ClusterMasterQuery
[hide private]
[frames] | no frames]

Class ClusterMasterQuery

source code


Cluster master query.

It accepts no arguments, and returns the current cluster master.

Instance Methods [hide private]
 
_GetMasterNode(self) source code
(integer, undefined)
Exec(self, query)
ClusterMasterQuery main execution
source code

Inherited from ConfdQuery: __init__

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]

Exec(self, query)

source code 

ClusterMasterQuery main execution

Parameters:
  • query - ConfdRequest 'query' field
Returns: (integer, undefined)
status and answer to give to the client
Overrides: ConfdQuery.Exec