Esempio n. 1
0
 def tasks(self):
     if self.fifo():
         t = task_chain(chains.control(self.que['Queues']['Fifo']))
     else:
         t = []
         for ph in range(0, self.priority_headers):
             t.extend(task_chain(chains.control( \
                 self.que['Queues']['Priority'][ph])))
     return t
Esempio n. 2
0
    def invoke(self, arg, from_tty):
        obj = objects.information.object_return(self.api, self._class)

        inst = chains.control(obj)

        if inst.empty():
            print '     error: empty chain'
            return

        nd = inst.first()
        i = 0
        while not nd.null():
            wd = watchdog.control(nd.cast('Watchdog_Control'))
            print ' #'+str(i)
            print wd.to_string()
            nd.next()
            i += 1
Esempio n. 3
0
    def invoke(self, arg, from_tty):
        obj = objects.information.object_return(self.api, self._class)

        inst = chains.control(obj)

        if inst.empty():
            print('     error: empty chain')
            return

        nd = inst.first()
        i = 0
        while not nd.null():
            wd = watchdog.control(nd.cast('Watchdog_Control'))
            print(' #'+str(i))
            print(wd.to_string())
            nd.next()
            i += 1
Esempio n. 4
0
 def queue(self):
     return task_chain(chains.control(self.info['queue']))
Esempio n. 5
0
 def block2n(self):
     return task_chain(chains.control(self.info['Block2n']))
Esempio n. 6
0
 def tasks(self):
     if self.fifo():
         t = task_chain(chains.control(self.que['Queues']['Fifo']))
     else:
         t = task_tree(rbtrees.control(self.que['Queues']['Priority']))
     return t
Esempio n. 7
0
 def tasks(self):
     if self.fifo():
         t = task_chain(chains.control(self.que['Queues']['Fifo']))
     else:
         t =  task_tree(rbtrees.control(self.que['Queues']['Priority']))
     return t