관리-도구
편집 파일: plugin.cpython-311.pyc
� �Cg� � �B � d Z G d� de� � Z G d� de� � ZdS )�shamanc � � e Zd Zd� ZdS )�LveStatsPluginTerminatedc �0 � t j | g|�R i |�� d S )N)� Exception�__init__)�self�args�kwargss ��/builddir/build/BUILDROOT/lve-stats-4.2.10-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/core/plugin.pyr z!LveStatsPluginTerminated.__init__ s) � ���4�1�$�1�1�1�&�1�1�1�1�1� N)�__name__� __module__�__qualname__r � r r r r s# � � � � � �2� 2� 2� 2� 2r r c �, � e Zd ZdZdZdZd� Zd� Zd� ZdS )�LveStatsPlugina� Skeleton of the plugin. User plugins are not required to depend on the code of the project and have this class as a parent, but they should have methods set_config(config) and execute(lve_data) Additional attributes you may define in the plugin: * order : int : order of plugin execution. * period : int : time between executions of execute() method. Default period is set in config. * timeout : float or int : time to wait (in seconds) for plugin execution, until it is marked as halted and killed. Default missing or None for system plugins. Additional object (instance level) attributes set by system: * now: current moment of time (see time.time()) Updated by the system each time execute() is invoked. Additional class level attributes set by system * __is_user_plugin__ : True or False, determines is the current plugin loaded from user folder � Nc � � dS )z$ :type config: dict Nr )r �configs r � set_configzLveStatsPlugin.set_config/ � � � � r c � � || _ dS )z= :type engine: sqlalchemy.engine.base.Engine N)�engine)r r s r � set_db_enginezLveStatsPlugin.set_db_engine4 s � � ����r c � � dS )z� Should be overriden in the implementation. :param lve_data: lve_data is shared between instances of plugins, so that modify it carefully. :type lve_data: dict Nr )r �lve_datas r �executezLveStatsPlugin.execute: r r ) r r r �__doc__�nowr r r r r r r r r sW � � � � � �� �6 �C� �F�� � � � � �� � � � r r N)� __author__r r �objectr r r r �<module>r"