관리-도구
편집 파일: mr_proper.cpython-311.opt-1.pyc
� ��g� � � � d Z ddlmZ ddlmZmZmZ ddlmZ ddl m Z ddlmZ ddl mZmZmZ ddlmZ ee� � Z G d � d ee� � ZdS )u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � )� getLogger)�expect� MessageSource�MessageSink)�MessageType)�recurring_check)�MalwareDetachedDirCleaner)�OutdatedHistoryCleaner�OutdatedHitsCleaner�OutdatedScansCleaner)�UncompletedScansCleanerc �d � e Zd ZeeeegZd� Zd� Z d� Z eej � � d� � � Zd� ZdS )�MrProperc �0 � d | _ d | _ g | _ d S �N)�_loop�_sink�_tasks)�selfs �K/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/mr_proper.py�__init__zMrProper.__init__6 s � ��� ��� ������ c � �� K � || _ || _ | j D ]\}| j � | j � t |j � � |j � � � � � � � � �]d S r ) r r �CLEANERSr �append�create_taskr �PERIOD�cleanup)r �loop�sink�cleaners r � create_sourcezMrProper.create_source; s� � � � ��� ��� ��}� � �G��K���� �&�&�D�3�O�G�N�3�3�G�O�D�D�F�F�� � � � � � � r c � � K � d S r � )r r s r �create_sinkzMrProper.create_sinkE s � � � ��r c � �p K � t j � � � d {V �� t � d� � d S )NzDetached scans checked)r r �logger�info)r �_s r �check_detached_scanszMrProper.check_detached_scansH s@ � � � �%�-�/�/�/�/�/�/�/�/�/����,�-�-�-�-�-r c � �j K � | j D ]}|� � � �| j D ] }|� d {V �� �d S r )r �cancel)r �tasks r �shutdownzMrProper.shutdownM sV � � � ��K� � �D��K�K�M�M�M�M��K� � �D� �J�J�J�J�J�J�J�J� � r N)�__name__� __module__�__qualname__r r r r r r r"