예제 #1
0
    def xdbc_servers(self, connection=None):
        """
        Get a list of the XDBC servers in the local cluster.
        """
        if connection is None:
            connection = self.connection

        return XdbcServer.list(connection)
예제 #2
0
    def xdbc_servers(self, connection=None):
        """
        Get a list of the XDBC servers in the local cluster.
        """
        if connection is None:
            connection = self.connection

        return XdbcServer.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 xdbc_servers(self, connection=None):
        if connection is None:
            connection = self.connection

        return XdbcServer.list(connection)
예제 #6
0
    def xdbc_servers(self, connection=None):
        if connection is None:
            connection = self.connection

        return XdbcServer.list(connection)