

def get_clients(self):
    ' Get ZooKeeper server clients '
    clients = []
    stat = self._send_cmd('stat')
    if (not stat):
        return clients
    sio = StringIO(stat)
    sio.readline()
    sio.readline()
    for line in sio:
        if (not line.strip()):
            break
        try:
            clients.append(Session(line.strip()))
        except Session.BrokenLine:
            continue
    return clients

dataset/ETHPy150Open francelabs/datafari/debian7/zookeeper/src/contrib/huebrowser/zkui/src/zkui/stats.py ZooKeeperStats.get_clients/original