Redis Connection Checker. More...

Public Member Functions | |
| def | __init__ (self, ip, port, hub_connection_lost_hook) |
| def | get_latency (self) |
| def | run (self) |
Public Attributes | |
| daemon | |
| ip | |
| ping_frequency | |
| pinger | |
| port | |
| terminate_requested | |
Private Attributes | |
| _hub_connection_lost_hook | |
Redis Connection Checker.
Pings redis periodically to figure out if the redis connection is still alive.
Definition at line 35 of file gateway_hub.py.
| def rocon_gateway.gateway_hub.HubConnectionCheckerThread.__init__ | ( | self, | |
| ip, | |||
| port, | |||
| hub_connection_lost_hook | |||
| ) |
Definition at line 40 of file gateway_hub.py.
| def rocon_gateway.gateway_hub.HubConnectionCheckerThread.get_latency | ( | self | ) |
Definition at line 50 of file gateway_hub.py.
| def rocon_gateway.gateway_hub.HubConnectionCheckerThread.run | ( | self | ) |
This runs in the background to gather the latest connection statistics Note - it's not used in the keep alive check
Definition at line 53 of file gateway_hub.py.
|
private |
Definition at line 44 of file gateway_hub.py.
| rocon_gateway.gateway_hub.HubConnectionCheckerThread.daemon |
Definition at line 42 of file gateway_hub.py.
| rocon_gateway.gateway_hub.HubConnectionCheckerThread.ip |
Definition at line 45 of file gateway_hub.py.
| rocon_gateway.gateway_hub.HubConnectionCheckerThread.ping_frequency |
Definition at line 43 of file gateway_hub.py.
| rocon_gateway.gateway_hub.HubConnectionCheckerThread.pinger |
Definition at line 47 of file gateway_hub.py.
| rocon_gateway.gateway_hub.HubConnectionCheckerThread.port |
Definition at line 46 of file gateway_hub.py.
| rocon_gateway.gateway_hub.HubConnectionCheckerThread.terminate_requested |
Definition at line 48 of file gateway_hub.py.