Beispiel #1
0
 def start(self, regname, regport, booturl=None):
     ThreadLoop.start(self)
     self.enabled = True
     for name, url in self.startup['start'].iteritems():
         self.add(name, url)
     def cb(client, result):
         if result.error:
             rlog(10, booturl, 'boot error: %s' % result.error)
         else:
             rlog(10, booturl, 'boot result: %s' % result.data)
     self.boot(regname, regport, booturl, cbin=cb)
Beispiel #2
0
    def start(self, regname, regport, booturl=None):
        ThreadLoop.start(self)
        self.enabled = True
        for name, url in self.startup['start'].iteritems():
            self.add(name, url)

        def cb(client, result):
            if result.error:
                rlog(10, booturl, 'boot error: %s' % result.error)
            else:
                rlog(10, booturl, 'boot result: %s' % result.data)

        self.boot(regname, regport, booturl, cbin=cb)
Beispiel #3
0
 def __init__(self):
     ThreadLoop.__init__(self, 'cloud')
     self.datadir = datadir + os.sep + 'plugs' + os.sep + 'cloud'
     self.nodes = {}
     self.state = Pdod(self.datadir + os.sep + 'state')
     self.startup = Pdod(self.datadir + os.sep + 'startup')
     if not self.state.has_key('ignore'):
         self.state['ignore'] = []
     if not self.state.has_key('names'):
         self.state['names'] = {}
     if not self.startup.has_key('start'):
         self.startup['start'] = {}
     self.enabled = False
     self.running = False
Beispiel #4
0
 def __init__(self):
     ThreadLoop.__init__(self, 'cloud')
     self.datadir = datadir + os.sep + 'plugs' + os.sep + 'cloud'
     self.nodes = {}
     self.state = Pdod(self.datadir + os.sep + 'state')
     self.startup = Pdod(self.datadir + os.sep + 'startup')
     if not self.state.has_key('ignore'):
         self.state['ignore'] = []
     if not self.state.has_key('names'):
         self.state['names'] = {}
     if not self.startup.has_key('start'):
         self.startup['start'] = {}
     self.enabled = False
     self.running = False
Beispiel #5
0
 def __init__(self):
     ThreadLoop.__init__(self, 'aggregator')
     self.results = {}
     self.outre = re.compile('(/S+)\:s(/S)+s')
Beispiel #6
0
 def __init__(self):
     ThreadLoop.__init__(self, 'aggregator')
     self.results = {}
     self.outre = re.compile('(/S+)\:s(/S)+s')