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

Class ConfdQuery

source code


Confd Query base class.

Instance Methods [hide private]
 
__init__(self, reader)
Constructor for Confd Query
source code
(integer, undefined)
Exec(self, query)
Process a single UDP request from a client.
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, reader)
(Constructor)

source code 

Constructor for Confd Query

Parameters:
Overrides: object.__init__

Exec(self, query)

source code 

Process a single UDP request from a client.

Different queries should override this function, which by defaults returns a "non-implemented" answer.

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