Esempio n. 1
0
 def gmaster_instantiate_tuple(self, slave):
     """return a tuple of the 'one shot' and the 'main crawl'
     class instance"""
     return (gmaster_builder('xsync')(self,
                                      slave), gmaster_builder()(self,
                                                                slave),
             gmaster_builder('changeloghistory')(self, slave))
Esempio n. 2
0
 def gmaster_instantiate_tuple(self, slave):
     """return a tuple of the 'one shot' and the 'main crawl'
     class instance"""
     return (
         gmaster_builder("xsync")(self, slave),
         gmaster_builder()(self, slave),
         gmaster_builder("changeloghistory")(self, slave),
     )
Esempio n. 3
0
    def service_loop(self, *args):
        """enter service loop

        - if slave given, instantiate GMaster and
          pass control to that instance, which implements
          master behavior
        - else do that's what's inherited
        """
        if args:
            gmaster_builder()(self, args[0]).crawl_loop()
        else:
            sup(self, *args)
Esempio n. 4
0
    def service_loop(self, *args):
        """enter service loop

        - if slave given, instantiate GMaster and
          pass control to that instance, which implements
          master behavior
        - else do that's what's inherited
        """
        if args:
            gmaster_builder()(self, args[0]).crawl_loop()
        else:
            sup(self, *args)
Esempio n. 5
0
 def gmaster_instantiate_tuple(self, slave):
     """return a tuple of the 'one shot' and the 'main crawl'
     class instance"""
     return (gmaster_builder('xsync')(self, slave),
             gmaster_builder()(self, slave))