Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
ec7610e1
Commit
ec7610e1
authored
9 years ago
by
Jan Rinze Peterzon
Browse files
Options
Downloads
Patches
Plain Diff
Task #8571: Added extra docstring for class RPC().
parent
ce9a061f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/Messaging/python/messaging/RPC.py
+12
-1
12 additions, 1 deletion
LCS/Messaging/python/messaging/RPC.py
with
12 additions
and
1 deletion
LCS/Messaging/python/messaging/RPC.py
+
12
−
1
View file @
ec7610e1
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment