class documentation
class Client(cl.AbstractClient):
High-level client implementation.
This uses a backing Transport-like class on top of which it implements data serialization/deserialization.
Method | __init__ |
Constructor for the Client class. |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Query for resources/items. |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Query for available fields. |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Undocumented |
Method |
|
Waits for changes on a job. |
Instance Variable | address |
Undocumented |
Instance Variable | version |
Undocumented |
Static Method | _ |
Undocumented |
Method | _ |
Returns the socket address |
Inherited from AbstractClient
:
Method |
|
Send a generic request and return the response. |
Method |
|
Close the underlying connection. |
Method | close |
Same as Close , to be used with contextlib.closing(...). |
Instance Variable | allow |
Undocumented |
Instance Variable | timeouts |
Undocumented |
Instance Variable | transport |
Undocumented |
Instance Variable | transport |
Undocumented |
Method | _ |
Close the transport, ignoring errors. |
Method | _ |
(Re)initialize the transport if needed. |
Method | _ |
Undocumented |
Query for resources/items.
Parameters | |
what | One of constants.QR_VIA_LUXI |
fields:List of strings | List of requested fields |
qfilter:None or list | Query filter |
Returns | |
objects.QueryResponse | Undocumented |
Query for available fields.
Parameters | |
what | One of constants.QR_VIA_LUXI |
fields:None or list of strings | List of requested fields |
Returns | |
objects.QueryFieldsResponse | Undocumented |
def WaitForJobChangeOnce(self, job_id, fields, prev_job_info, prev_log_serial, timeout=WFJC_TIMEOUT):
¶
Waits for changes on a job.
Parameters | |
job | Job ID |
fields:list | List of field names to be observed |
prev | Previously received job information |
prev | Highest log serial number previously received |
timeout:int/float | Timeout in seconds (values larger than WFJC_TIMEOUT will be capped to that value) |