Exemplo n.º 1
0
 def __init__(self, conffile):
     import nodemgrdbthr, nodemgrsvr, nodemgrsslsvr, nodemgrhttpsvr
     import socket, xmlconf, logfile, resolve
     threading.Thread.__init__(self)
     self.rlock = threading.RLock()
     self.conf = xmlconf.nodemgrconf(conffile)
     self.logfile = logfile.logfile(self.conf.logfile)
     self.host = socket.getfqdn(socket.gethostname())
     self.ip = resolve.getlocalip()
     self.dbthr = nodemgrdbthr.nodemgrdbthr(self)
     self.svrthr = nodemgrsvr.nodemgrsvrthr(self)
     self.sslsvrthr = nodemgrsslsvr.nodemgrsslsvrthr(self)
     self.httpsvrthr = nodemgrhttpsvr.nodemgrhttpsvrthr(self)
Exemplo n.º 2
0
 def __init__(self, conffile):
     import gmetadthr, agentsvr, agentsslsvr, agenthttpsvr, agentdbthr
     import socket, xmlconf, logfile, resolve
     threading.Thread.__init__(self)
     self.rlock = threading.RLock()
     self.conf = xmlconf.agentconf(conffile)
     self.logfile = logfile.logfile(self.conf.logfile)
     self.host = socket.getfqdn(socket.gethostname())
     self.ip = resolve.getlocalip()
     self.dbthr = agentdbthr.agentdbthr(self)
     self.gmetadthr = gmetadthr.gmetadthr(self)
     self.svrthr = agentsvr.agentsvrthr(self)
     self.sslsvrthr = agentsslsvr.agentsslsvrthr(self)
     self.httpsvrthr = agenthttpsvr.agenthttpsvrthr(self)
     self.leasestoips = {}
     self.slicestoips = {}
     self.logfile.log("Initializing")
Exemplo n.º 3
0
 def __init__(self, conffile):
     import gmetadthr, agentsvr, agentsslsvr, agenthttpsvr, agentdbthr
     import socket, xmlconf, logfile, resolve
     threading.Thread.__init__(self)
     self.rlock = threading.RLock()        
     self.conf = xmlconf.agentconf(conffile)
     self.logfile = logfile.logfile(self.conf.logfile)
     self.host = socket.getfqdn(socket.gethostname())
     self.ip = resolve.getlocalip()
     self.dbthr = agentdbthr.agentdbthr(self)
     self.gmetadthr = gmetadthr.gmetadthr(self)
     self.svrthr = agentsvr.agentsvrthr(self)
     self.sslsvrthr = agentsslsvr.agentsslsvrthr(self)
     self.httpsvrthr = agenthttpsvr.agenthttpsvrthr(self)
     self.leasestoips = {}
     self.slicestoips = {}
     self.logfile.log("Initializing")