Convert job queue's RPC to generated code
authorMichael Hanselmann <hansmi@google.com>
Tue, 25 Oct 2011 15:30:33 +0000 (17:30 +0200)
committerMichael Hanselmann <hansmi@google.com>
Wed, 26 Oct 2011 08:53:43 +0000 (10:53 +0200)
commitfb1ffbca53e1fa9f7167ab04ec9c8299b64c43d6
treec8a435a8a518d4f813fca7a9c8db72973df1e171
parent46c293f01640a2fd71b88b8da7960a6f56ee4284
Convert job queue's RPC to generated code

With these changes job queue RPC will finally show up on the lock
monitor. See below for an example. A job queue-specific class is used to
restrict the use of a static list for name resolution to the job queue.
Further improvements can be made to not re-create the whole RPC client
for every call (e.g. by using a more dynamic resolver), but for now this
works.

rpc/node8.example.com/jobqueue_update Jq8/Job9/TEST_DELAY

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/build/rpc_definitions.py
lib/jqueue.py
lib/rpc.py
lib/server/noded.py