b6ddlZGddZGddeZy)Nc^eZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZy)SentinelCommandszn A class containing the commands specific to redis sentinel. This class is to be used as a mixin. c@tjtdy)"Redis Sentinel's SENTINEL command.z%Use the individual sentinel_* methodsN)warningswarnDeprecationWarning)selfargss 9/usr/lib/python3/dist-packages/redis/commands/sentinel.pysentinelzSentinelCommands.sentinel s ()PQRc&|jd|S)z:Returns a (host, port) pair for the given ``service_name``z SENTINEL GET-MASTER-ADDR-BY-NAMEexecute_commandr service_names r sentinel_get_master_addr_by_namez1SentinelCommands.sentinel_get_master_addr_by_names##$F UUrc&|jd|S)zReturns a list of dictionaries containing each master's state.zSENTINEL MASTERSrr s r sentinel_mastersz!SentinelCommands.sentinel_masterss##$677rc,|jd||||S)z,Add a new master to Sentinel to be monitoredzSENTINEL MONITORr)r nameipportquorums r sentinel_monitorz!SentinelCommands.sentinel_monitors##$6b$OOrc&|jd|S)z*Remove a master from Sentinel's monitoringzSENTINEL REMOVEr)r rs r sentinel_removez SentinelCommands.sentinel_removes##$5t<r>`s   rr>)rrr>r<rr rDs"Y<Y