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)
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 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)