def create(): root = SrvDir() root.putChild('xend', SrvRoot()) servers = XendServers() if xroot.get_xend_http_server(): servers.add(HttpServer(root, xroot.get_xend_address(), xroot.get_xend_port())) if xroot.get_xend_unix_server(): path = xroot.get_xend_unix_path() log.info('unix path=' + path) servers.add(UnixHttpServer(root, path)) if xroot.get_xend_tcp_xmlrpc_server(): servers.add(XMLRPCServer(True)) if xroot.get_xend_unix_xmlrpc_server(): servers.add(XMLRPCServer()) return servers
def __init__(self, dom): SrvDir.__init__(self) self.dom = dom self.xd = XendDomain.instance()
def __init__(self): SrvDir.__init__(self) self.xd = XendDmesg.instance()
def create(): root = SrvDir() root.putChild('xend', SrvRoot()) servers = XendServers(root) _loadConfig(servers, root, False) return servers
def get(self, x): v = SrvDir.get(self, x) if v is not None: return v v = self.vnet(x) return v
def __init__(self, vnetinfo): SrvDir.__init__(self) self.vnetinfo = vnetinfo self.xvnet = XendVnet.instance()
def __init__(self): SrvDir.__init__(self) self.xn = XendNode.instance() self.add('dmesg', 'SrvDmesg') self.add('log', 'SrvXendLog')
def __init__(self): SrvDir.__init__(self) self.logfile = static.File(XendLogging.getLogFilename(), defaultType="text/plain") self.logfile.type = "text/plain" self.logfile.encoding = None
def __init__(self): SrvDir.__init__(self) for (name, klass) in self.subdirs: self.add(name, klass) for (name, klass) in self.subdirs: self.get(name)
def __init__(self): SrvDir.__init__(self) self.xvnet = XendVnet.instance()
def __init__(self): SrvDir.__init__(self) self.xd = XendDomain.instance()
def get(self, x): v = SrvDir.get(self, x) if v is not None: return v else: return self.domain(x)