Ejemplo n.º 1
0
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()
 def __init__(self):
     self._client = get_connected_zookeeper_client()
def I_have_a_connection_to_zookeeper():
    world.zookeeper = get_connected_zookeeper_client()