Public Member Functions | Private Member Functions | Private Attributes | List of all members
rocon_hub.redis_server.RedisServer Class Reference

Redis Server. More...

Public Member Functions

def __init__ (self, parameters)
 
def shutdown (self)
 
def start (self)
 

Private Member Functions

def _introspect_redis_server_version (self)
 
def _setup (self)
 

Private Attributes

 _files
 
 _home_dir
 
 _parameters
 
 _process
 
 _server
 
 _version_extension
 

Detailed Description

Redis Server.

Definition at line 37 of file redis_server.py.

Constructor & Destructor Documentation

def rocon_hub.redis_server.RedisServer.__init__ (   self,
  parameters 
)

Definition at line 38 of file redis_server.py.

Member Function Documentation

def rocon_hub.redis_server.RedisServer._introspect_redis_server_version (   self)
private
  Sniff the version in major.minor format for decision making elsewhere (patch we disregard since our
  decisions don't depend on it).

  @return version extension in 'major.minor' format.
  @rtype str

Definition at line 53 of file redis_server.py.

def rocon_hub.redis_server.RedisServer._setup (   self)
private
  Clear and configure redis conf, log files in the ros home
  directories under a subdirectory styled by the name of this hub.

  Also check that we have support for the redis server - i.e. check if we
  have a .conf file for that version and exit this script if not found.

Definition at line 71 of file redis_server.py.

def rocon_hub.redis_server.RedisServer.shutdown (   self)
  Clears rocon: keys on the server.

Definition at line 146 of file redis_server.py.

def rocon_hub.redis_server.RedisServer.start (   self)
  Start the server. Also connect, delete all rocon:xxx
  variables and reinitialise with specified values.

  Aborts the program if the connection fails.

Definition at line 110 of file redis_server.py.

Member Data Documentation

rocon_hub.redis_server.RedisServer._files
private

Definition at line 45 of file redis_server.py.

rocon_hub.redis_server.RedisServer._home_dir
private

Definition at line 41 of file redis_server.py.

rocon_hub.redis_server.RedisServer._parameters
private

Definition at line 39 of file redis_server.py.

rocon_hub.redis_server.RedisServer._process
private

Definition at line 40 of file redis_server.py.

rocon_hub.redis_server.RedisServer._server
private

Definition at line 50 of file redis_server.py.

rocon_hub.redis_server.RedisServer._version_extension
private

Definition at line 46 of file redis_server.py.


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


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