Part of udplog.scribe View Source View In Hierarchy
Asynchronous Scribe client.
This derives from scribe.Client
to work with the Twisted
Thrift transport and provide an asynchronous interface for Log
.
Line # | Kind | Name | Docs |
---|---|---|---|
41 | Method | __init__ | Set up a scribe client. |
55 | Method | Log | Log messages. |
70 | Method | send_Log | Called to send log messages. |
78 | Method | recv_Log | Called when the result of the log request was received. |
0 | Instance Variable | _reqs | List of pending requests. When a result comes in, the associated deferred will be fired. If the connection is closed, the deferreds of the pending requests will be fired with an exception. |
Set up a scribe client.
Parameters | transport | The transport of the connection to the Scribe server. |
factory | The protocol factory of the Thrift transport protocol. |
Log messages.
Parameters | messages | The messages to be sent. (type: list of scribe.LogEntry .) |
Returns | Deferred . |
Called when the result of the log request was received.