示例#1
0
    def http_servers(self, connection=None):
        """
        Get a list of the HTTP servers in the local cluster.
        """
        if connection is None:
            connection = self.connection

        return HttpServer.list(connection)
示例#2
0
    def http_servers(self, connection=None):
        """
        Get a list of the HTTP servers in the local cluster.
        """
        if connection is None:
            connection = self.connection

        return HttpServer.list(connection)
示例#3
0
    def list(self, args, config, connection):
        stype = args['type']
        if stype == None:
            slist = Server.list(connection)
        elif stype == 'http':
            slist = HttpServer.list(connection)
        elif stype == 'odbc':
            slist = OdbcServer.list(connection)
        elif stype == 'xdbc':
            slist = XdbcServer.list(connection)
        elif stype == 'webdav':
            slist = WebDAVServer.list(connection)
        else:
            print("Unexpected server type: {0}".format(stype))
            sys.exit(1)

        names = []
        for key in slist:
            (group,name) = key.split('|')
            if group == args['group']:
                names.append(name)

        print(json.dumps(names,sort_keys=True, indent=2))
示例#4
0
    def list(self, args, config, connection):
        stype = args['type']
        if stype == None:
            slist = Server.list(connection)
        elif stype == 'http':
            slist = HttpServer.list(connection)
        elif stype == 'odbc':
            slist = OdbcServer.list(connection)
        elif stype == 'xdbc':
            slist = XdbcServer.list(connection)
        elif stype == 'webdav':
            slist = WebDAVServer.list(connection)
        else:
            print("Unexpected server type: {0}".format(stype))
            sys.exit(1)

        names = []
        for key in slist:
            (group, name) = key.split('|')
            if group == args['group']:
                names.append(name)

        print(json.dumps(names, sort_keys=True, indent=2))
    def http_servers(self, connection=None):
        if connection is None:
            connection = self.connection

        return HttpServer.list(connection)
示例#6
0
    def http_servers(self, connection=None):
        if connection is None:
            connection = self.connection

        return HttpServer.list(connection)