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

Class NodeRoleQuery

source code

A query for the role of a node.

It will return one of CONFD_NODE_ROLE_*, or an error for non-existing nodes.

Instance Methods [hide private]
(integer, undefined)
Exec(self, query)
EmptyQuery 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 

EmptyQuery main execution

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