server_classes::MyParserThread Class Reference

List of all members.

Public Member Functions

def __init__
def run
def _refresh_keywords
def _refresh_configuration
def stop_thread
def parse_directory
def gunzip

Detailed Description

This class is used to create a thread, which is doing all the necessery work in the background.

Definition at line 573 of file server_classes.py.


Member Function Documentation

def server_classes::MyParserThread::__init__   self,
  shared,
  timus,
  gz_path,
  logfilepath,
  logfilename,
  keyword,
  ignore_error,
  xml_file_path,
  xml_file_name,
  configfile,
  keywordfile,
  verbose
 

Constructor

Definition at line 575 of file server_classes.py.

def server_classes::MyParserThread::_refresh_configuration   self  ) 
 

This function gets the needed information from the configfile!

Definition at line 699 of file server_classes.py.

def server_classes::MyParserThread::_refresh_keywords   self  ) 
 

This function gets keywords from the keyword file !

Definition at line 685 of file server_classes.py.

def server_classes::MyParserThread::gunzip   self,
  filus,
  name_temp_file = "temp_srbLog"
 

This function unzips a *.gz file using the system tool gunzip. Make sure when calling the function the file exists in this directory. The function creates a temporary file and leave the orignal *.gz file untouched!

Definition at line 767 of file server_classes.py.

def server_classes::MyParserThread::parse_directory   self,
  arg,
  dirname,
  fnames
 

This function "walks" through a given directory and considers all srbLOG*.gz files. The name and last modified time are saved in a list (2 dimensional array). The function should be used with os.path.walk(path, function_name, arg)!

Definition at line 736 of file server_classes.py.

def server_classes::MyParserThread::run   self  ) 
 

This function overwrites the standard run method.

Definition at line 597 of file server_classes.py.

def server_classes::MyParserThread::stop_thread   self  ) 
 

Stop the thread

Definition at line 730 of file server_classes.py.


The documentation for this class was generated from the following file:
Generated on Sun Mar 5 18:04:16 2006 for GZ Parser by  doxygen 1.4.6-NO