File: //usr/lib/python3/dist-packages/twisted/application/runner/__pycache__/_runner.cpython-310.pyc
o
�b� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZ ddlm
Z
mZmZ ddlmZ ddlmZ dd lmZmZmZmZmZmZmZ d
dlmZmZ d
dlm Z m!Z!m"Z"m#Z# ed
d�G dd� d��Z$dS )z
Twisted application runner.
� )�kill)�SIGTERM)�stderr)�Any�Callable�Mapping�TextIO)�Factory�attrib�attrs)�
NamedConstant)�IReactorCore)�FileLogObserver�FilteringLogObserver�Logger�LogLevel�LogLevelFilterPredicate�globalLogBeginner�textFileLogObserver� )�
ExitStatus�exit)�AlreadyRunningError�InvalidPIDFileError�IPIDFile�nonePIDFileT)�frozenc @ s� e Zd ZdZe� Zeed�Zee e
d�Zeedd�Z
eeejd�Zeeed�Zeeegef ed�Zeed dd� d�Zeeeef ee�d�Zeed dd� d�Z eeeef ee�d�Z!ddd�Z"dd
d�Z#ddd�Z$ddd�Z%ddd�Z&ddd�Z'd
S )�Runnera
Twisted application runner.
@cvar _log: The logger attached to this class.
@ivar _reactor: The reactor to start and run the application in.
@ivar _pidFile: The file to store the running process ID in.
@ivar _kill: Whether this runner should kill an existing running
instance of the application.
@ivar _defaultLogLevel: The default log level to start the logging
system with.
@ivar _logFile: A file stream to write logging output to.
@ivar _fileLogObserverFactory: A factory for the file log observer to
use when starting the logging system.
@ivar _whenRunning: Hook to call after the reactor is running;
this is where the application code that relies on the reactor gets
called.
@ivar _whenRunningArguments: Keyword arguments to pass to
C{whenRunning} when it is called.
@ivar _reactorExited: Hook to call after the reactor exits.
@ivar _reactorExitedArguments: Keyword arguments to pass to
C{reactorExited} when it is called.
)�type)r �defaultF).Nc K � d S �N� ��_r"