Exemplo n.º 1
0
def clients(request, host):
    parts = host.split(':')
    if len(parts) != 2:
        raise Http404

    host, port = parts
    zks = ZooKeeperStats(host, port)
    clients = zks.get_clients()

    return render('clients.mako', request,
                  dict(host=host, port=port, clients=clients))
Exemplo n.º 2
0
def clients(request, host):
  parts = host.split(':')  
  if len(parts) != 2:
    raise Http404

  host, port = parts
  zks = ZooKeeperStats(host, port)
  clients = zks.get_clients()

  return render('clients.mako', request,
    dict(host=host, port=port, clients=clients))