Revision 3ccafd0e lib/luxi.py
b/lib/luxi.py | ||
---|---|---|
54 | 54 |
REQ_QUERY_NODES = "QueryNodes" |
55 | 55 |
REQ_QUERY_EXPORTS = "QueryExports" |
56 | 56 |
REQ_QUERY_CONFIG_VALUES = "QueryConfigValues" |
57 |
REQ_QUEUE_SET_DRAIN_FLAG = "SetDrainFlag" |
|
57 | 58 |
|
58 | 59 |
DEF_CTMO = 10 |
59 | 60 |
DEF_RWTO = 60 |
... | ... | |
291 | 292 |
|
292 | 293 |
return result |
293 | 294 |
|
295 |
def SetQueueDrainFlag(self, drain_flag): |
|
296 |
return self.CallMethod(REQ_QUEUE_SET_DRAIN_FLAG, drain_flag) |
|
297 |
|
|
294 | 298 |
def SubmitJob(self, ops): |
295 | 299 |
ops_state = map(lambda op: op.__getstate__(), ops) |
296 | 300 |
return self.CallMethod(REQ_SUBMIT_JOB, ops_state) |
... | ... | |
329 | 333 |
def QueryConfigValues(self, fields): |
330 | 334 |
return self.CallMethod(REQ_QUERY_CONFIG_VALUES, fields) |
331 | 335 |
|
336 |
|
|
332 | 337 |
# TODO: class Server(object) |
Also available in: Unified diff