5.3.1.20.3.2. cli.com.file_com.FileReader
- class cli.com.file_com.FileReader(name: str, control: ComControl, parameter: FileParameter)
Process that reads lines from an input file and places them on the output queue.
- __init__(name: str, control: ComControl, parameter: FileParameter) None
Initializes the FileReader process.
- Parameters:
name (str) – The process name.
control (ComControl) – Communication control object.
parameter (FileParameter) – File parameter configuration.
Methods
__init__(name, control, parameter)Initializes the FileReader process.
close()Close the Process object.
is_alive()Return whether process is alive
join([timeout])Wait until child process terminates
kill()Terminate process; sends SIGKILL signal or uses TerminateProcess()
run()Starts the file reading process and reads from the input file.
shutdown()Signals the process to shut down by setting the shutdown event.
start()Start child process
terminate()Terminate process; sends SIGTERM signal or uses TerminateProcess()
Attributes
authkeydaemonReturn whether process is a daemon
exitcodeReturn exit code of process or None if it has yet to stop
identReturn identifier (PID) of process or None if it has yet to start
namepidReturn identifier (PID) of process or None if it has yet to start
sentinelReturn a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.
controlparameter