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

authkey

daemon

Return whether process is a daemon

exitcode

Return exit code of process or None if it has yet to stop

ident

Return identifier (PID) of process or None if it has yet to start

name

pid

Return identifier (PID) of process or None if it has yet to start

sentinel

Return a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.

control

parameter