Public Member Functions | Public Attributes | Private Attributes | List of all members
rocon_gateway.gateway_hub.HubConnectionCheckerThread Class Reference

Redis Connection Checker. More...

Inheritance diagram for rocon_gateway.gateway_hub.HubConnectionCheckerThread:
Inheritance graph
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

def rocon_gateway.gateway_hub.HubConnectionCheckerThread.__init__ (   self,
  ip,
  port,
  hub_connection_lost_hook 
)

Definition at line 40 of file gateway_hub.py.

Member Function Documentation

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.

Member Data Documentation

rocon_gateway.gateway_hub.HubConnectionCheckerThread._hub_connection_lost_hook
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.


The documentation for this class was generated from the following file:


rocon_gateway
Author(s): Daniel Stonier , Jihoon Lee , Piyush Khandelwal
autogenerated on Mon Jun 10 2019 14:40:10