Sindbad~EG File Manager
3
�f� � @ s6 d dl mZ d dlmZmZmZ G dd� dee�ZdS )� )�gethostname)�Plugin�RedHatPlugin� PluginOptc @ s` e Zd ZdZdZdZdZedded d
�edde dd
�ed
de dd
�edde dd
�gZ
dd� ZdS )�QpidDispatchzQpid dispatch routerZ
qpid_dispatch�services� qdrouterd�qpid-dispatch-tools�qpid-dispatch-router�port� zlistening port to connect to)�defaultZval_typeZdesczssl-certificatez.Path to file containing client SSL certificatezssl-keyz.Path to file containing client SSL private keyz
ssl-trustfileztrusted CA database filec C s� d}| j d�r*|d t� d| j d� }x,dD ]$}| j |�r0|d| | j |� }q0W | jd | d
| d| d| g� | jd
g� dS )z3 performs data collection for qpid dispatch router r r z -b z:%s�ssl-certificate�ssl-key�
ssl-trustfilez --%s=z qdstat -az qdstat -nz qdstat -cz qdstat -mz!/etc/qpid-dispatch/qdrouterd.confN)r r r )Z
get_optionr Zadd_cmd_outputZ
add_copy_spec)�selfZoptionsZoption� r �#/usr/lib/python3.6/qpid_dispatch.py�setup"