Skip to content
GitLab
Explore
Sign in
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
b0c98017
Commit
b0c98017
authored
5 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-699
: DEFAULT_RPC_TIMEOUT
parent
1e0b2908
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
SAS/MoM/MoMQueryService/MoMQueryServiceClient/momqueryrpc.py
+2
-2
2 additions, 2 deletions
SAS/MoM/MoMQueryService/MoMQueryServiceClient/momqueryrpc.py
with
2 additions
and
2 deletions
SAS/MoM/MoMQueryService/MoMQueryServiceClient/momqueryrpc.py
+
2
−
2
View file @
b0c98017
...
@@ -21,7 +21,7 @@ import sys
...
@@ -21,7 +21,7 @@ import sys
import
logging
import
logging
import
pprint
import
pprint
from
optparse
import
OptionParser
from
optparse
import
OptionParser
from
lofar.messaging
import
RPCClient
,
RPCClientContextManagerMixin
,
DEFAULT_BROKER
,
DEFAULT_BUSNAME
,
DEFAULT_
BUS
_TIMEOUT
from
lofar.messaging
import
RPCClient
,
RPCClientContextManagerMixin
,
DEFAULT_BROKER
,
DEFAULT_BUSNAME
,
DEFAULT_
RPC
_TIMEOUT
from
lofar.mom.momqueryservice.config
import
DEFAULT_MOMQUERY_SERVICENAME
from
lofar.mom.momqueryservice.config
import
DEFAULT_MOMQUERY_SERVICENAME
'''
Simple RPC client for Service momqueryservice
'''
Simple RPC client for Service momqueryservice
...
@@ -38,7 +38,7 @@ class MoMQueryRPC(RPCClientContextManagerMixin):
...
@@ -38,7 +38,7 @@ class MoMQueryRPC(RPCClientContextManagerMixin):
self
.
_rpc_client
=
rpc_client
or
RPCClient
(
service_name
=
DEFAULT_MOMQUERY_SERVICENAME
)
self
.
_rpc_client
=
rpc_client
or
RPCClient
(
service_name
=
DEFAULT_MOMQUERY_SERVICENAME
)
@staticmethod
@staticmethod
def
create
(
exchange
:
str
=
DEFAULT_BUSNAME
,
broker
:
str
=
DEFAULT_BROKER
,
timeout
:
int
=
DEFAULT_
BUS
_TIMEOUT
):
def
create
(
exchange
:
str
=
DEFAULT_BUSNAME
,
broker
:
str
=
DEFAULT_BROKER
,
timeout
:
int
=
DEFAULT_
RPC
_TIMEOUT
):
"""
Create a MoMQueryRPC connecting to the given exchange/broker on the default DEFAULT_MOMQUERY_SERVICENAME service
"""
"""
Create a MoMQueryRPC connecting to the given exchange/broker on the default DEFAULT_MOMQUERY_SERVICENAME service
"""
return
MoMQueryRPC
(
RPCClient
(
service_name
=
DEFAULT_MOMQUERY_SERVICENAME
,
exchange
=
exchange
,
broker
=
broker
,
timeout
=
timeout
))
return
MoMQueryRPC
(
RPCClient
(
service_name
=
DEFAULT_MOMQUERY_SERVICENAME
,
exchange
=
exchange
,
broker
=
broker
,
timeout
=
timeout
))
...
...
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