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

Class PingQuery

source code


An empty confd query.

It will return success on an empty argument, and an error on any other argument.

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

PingQuery main execution.

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