コード例 #1
0
ファイル: client.py プロジェクト: philipcristiano/fairground
def create_process(name, command):
    path = base_path + name
    client = get_connected_zookeeper_client()
    try:
        client.create(path, command, makepath=True)
    except zookeeper.NodeExistsException:
        client.set(path, command)
    client.stop()
コード例 #2
0
 def __init__(self):
     self._client = get_connected_zookeeper_client()
コード例 #3
0
def I_have_a_connection_to_zookeeper():
    world.zookeeper = get_connected_zookeeper_client()