Skip to content
Snippets Groups Projects
Commit ec7610e1 authored by Jan Rinze Peterzon's avatar Jan Rinze Peterzon
Browse files

Task #8571: Added extra docstring for class RPC().

parent ce9a061f
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,19 @@ from lofar.messaging.messagebus import ToBus, FromBus
from lofar.messaging.messages import ServiceMessage, ReplyMessage
import uuid
class RPC():
"""
This class provides an easy way to invoke a Remote Rrocedure Call to a
Services on the message bus.
Note that most methods require that the RPC object is used *inside* a
context. When entering the context, the connection with the broker is
opened, and a session and a sender are created. For each rpc invocation
a new unique reply context is created as to avoid cross talk.
When exiting the context the connection to the broker is closed.
As a side-effect the sender and session are destroyed.
"""
def __init__(self, bus, service, timeout=None, ForwardExceptions=None, Verbose=None):
"""
Initialize an Remote procedure call using:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment