Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python3 ArmarX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software
ArmarX
Python3 ArmarX
Merge requests
!58
Add Memory Stop Listener
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add Memory Stop Listener
memory-stop-listener
into
master
Overview
0
Commits
7
Pipelines
2
Changes
12
Merged
Rainer Kartmann
requested to merge
memory-stop-listener
into
master
1 year ago
Overview
0
Commits
7
Pipelines
2
Changes
12
Expand
Part of
https://git.h2t.iar.kit.edu/sw/armarx-integration/robots/armar7/documentation/-/issues/82
Edited
1 year ago
by
Rainer Kartmann
0
0
Merge request reports
Compare
master
version 1
61933884
1 year ago
master (base)
and
latest version
latest version
c300942e
7 commits,
1 year ago
version 1
61933884
5 commits,
1 year ago
12 files
+
388
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
armarx_core/reconnecting_proxy_client.py
0 → 100644
+
37
−
0
Options
import
abc
import
typing
as
ty
Client
=
ty
.
TypeVar
(
"
Client
"
)
class
ReconnectingProxyClient
(
abc
.
ABC
):
def
__init__
(
self
,
):
self
.
_client
:
ty
.
Optional
[
Client
]
=
None
def
_get
(
self
,
wait
=
True
,
log
=
None
,
)
->
ty
.
Optional
[
Client
]:
self
.
_connect
(
wait
=
wait
,
log
=
log
)
return
self
.
_client
def
_connect
(
self
,
wait
=
True
,
log
=
None
):
if
self
.
_client
is
None
:
if
wait
:
self
.
client
=
self
.
_wait_for_client
()
else
:
self
.
client
=
self
.
_get_client
()
@abc.abstractmethod
def
_wait_for_client
(
self
)
->
Client
:
...
@abc.abstractmethod
def
_get_client
(
self
)
->
ty
.
Optional
[
Client
]:
...
Loading