コード例 #1
0
ファイル: views.py プロジェクト: B-Rich/zookeeper_dashboard
def index(request):
    server_data = []
    for i, server in enumerate(ZOOKEEPER_SERVERS):
        zkserver = ZKServer(server)
        zkserver.id = i
        server_data.append(zkserver)

    return render_to_response('zkadmin/index.html',
                              {'ZOOKEEPER_SERVERS':ZOOKEEPER_SERVERS,
                               'server_data':server_data})
コード例 #2
0
def index(request):
    server_data = []
    for i, server in enumerate(ZOOKEEPER_SERVERS):
        zkserver = ZKServer(server)
        zkserver.id = i
        server_data.append(zkserver)

    return render_to_response('zkadmin/index.html', {
        'ZOOKEEPER_SERVERS': ZOOKEEPER_SERVERS,
        'server_data': server_data
    })
コード例 #3
0
def index(request):
    zookeeper_servers = get_zookeeper_servers_as_list()
    server_data = []
    for i, server in enumerate(zookeeper_servers):
        zkserver = ZKServer(server)
        zkserver.id = i
        server_data.append(zkserver)

    return render_to_response('zkadmin/index.html',
                              {'ZOOKEEPER_SERVERS': zookeeper_servers,
                               'server_data': server_data})
コード例 #4
0
ファイル: views.py プロジェクト: glnsagar/zookeeper_dashboard
def index(request):
    zookeeper_servers = get_zookeeper_servers_as_list()
    server_data = []
    for i, server in enumerate(zookeeper_servers):
        zkserver = ZKServer(server)
        zkserver.id = i
        server_data.append(zkserver)

    return render_to_response('zkadmin/index.html', {
        'ZOOKEEPER_SERVERS': zookeeper_servers,
        'server_data': server_data
    })
コード例 #5
0
def index(request):
    server_data = []
    for i, server in enumerate(ZOOKEEPER_SERVERS):
        zkserver = ZKServer(server)
        zkserver.id = i
        server_data.append(zkserver)
        
    rootNode = ZNode()
    children = rootNode.getExtendedChildren()
    quotaNode = ZNode("/zookeeper/quota")

    return render_to_response('zkadmin/index.html',
                              {'ZOOKEEPER_SERVERS':ZOOKEEPER_SERVERS,
                               'server_data':server_data,
                               'rootNode':rootNode,
                               'children':children,
                               'quotaNode':quotaNode})
コード例 #6
0
def index(request):
    server_data = []
    for i, server in enumerate(ZOOKEEPER_SERVERS):
        zkserver = ZKServer(server)
        zkserver.id = i
        server_data.append(zkserver)

    rootNode = ZNode()
    children = rootNode.getExtendedChildren()
    quotaNode = ZNode("/zookeeper/quota")

    return render_to_response(
        'zkadmin/index.html', {
            'ZOOKEEPER_SERVERS': ZOOKEEPER_SERVERS,
            'server_data': server_data,
            'rootNode': rootNode,
            'children': children,
            'quotaNode': quotaNode
        })
コード例 #7
0
ファイル: views.py プロジェクト: B-Rich/zookeeper_dashboard
def detail(request, server_id):
    server_data = ZKServer(ZOOKEEPER_SERVERS[int(server_id)])
    server_data.id = server_id
    return render_to_response('zkadmin/detail.html',
                              {'server_data':server_data})
コード例 #8
0
def detail(request, server_id):
    server_data = ZKServer(ZOOKEEPER_SERVERS[int(server_id)])
    server_data.id = server_id
    return render_to_response('zkadmin/detail.html',
                              {'server_data': server_data})
コード例 #9
0
ファイル: views.py プロジェクト: glnsagar/zookeeper_dashboard
def detail(request, server_id):
    server_data = ZKServer(get_zookeeper_server(server_id))
    server_data.id = server_id
    return render_to_response('zkadmin/detail.html',
                              {'server_data': server_data})
コード例 #10
0
def detail(request, server_id):
    server_data = ZKServer(get_zookeeper_server(server_id))
    server_data.id = server_id
    return render_to_response('zkadmin/detail.html',
                              {'server_data':server_data})