RAVE
Lib.fm12_importer.fm12_importer Class Reference
Inheritance diagram for Lib.fm12_importer.fm12_importer:

Public Member Functions

 __init__ (self, dburi="postgresql://baltrad:baltrad@127.0.0.1/baltrad", monitored_dir=None, pidfile="/tmp/fm12_importer.pid")
 
 set_logger (self, logger)
 Sets an external logger if it is necessary.
 
 isalive (self)
 Determines whether the daemon is running, based on the PID in the PIDFILE.
 
 killme (self)
 
 catchup (self)
 
 convert_fm12_to_obs (self, fm12obs, dbinstance)
 
 convert_fm12list_to_obs (self, fm12list, dbinstance)
 
 import_file (self, fname)
 

Public Attributes

 dburi = dburi
 
 pidfile = pidfile
 
 monitored_dir = monitored_dir
 
bool janitor = False
 
bool docatchup = False
 

Protected Member Functions

 _init_logger (self)
 Initializes the default logger

 
 _import_file_internal (self, fname)
 

Protected Attributes

 _logger = logging.getLogger("fm12_importer")
 

Member Function Documentation

◆ _init_logger()

Lib.fm12_importer.fm12_importer._init_logger ( self)
protected

Initializes the default logger

◆ isalive()

Lib.fm12_importer.fm12_importer.isalive ( self)

Determines whether the daemon is running, based on the PID in the PIDFILE.

Returns
True if the daemon is running, otherwise False

◆ set_logger()

Lib.fm12_importer.fm12_importer.set_logger ( self,
logger )

Sets an external logger if it is necessary.


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