Example #1
0
    def __init__(self, workdata, config):
        FileModule.__init__(self, workdata, config)
        self.surveyor = nn.Socket(nn.SURVEYOR)
        self.surveyor.bind("tcp://0.0.0.0:8688")

        # 10 seconds max
        self.surveyor.set_int_option(nn.SURVEYOR, nn.SURVEYOR_DEADLINE, 10000)
        self.superstep = 0
        self.mode = MODE_SHIFT
        self.first = True
Example #2
0
    def __init__(self, workdata, config):
        FileModule.__init__(self,workdata,config)
        self.surveyor = nn.Socket( nn.SURVEYOR )
        self.surveyor.bind( "tcp://0.0.0.0:8688" )

        # 10 seconds max
        self.surveyor.set_int_option( nn.SURVEYOR, nn.SURVEYOR_DEADLINE, 10000 )
        self.superstep = 0
        self.mode = MODE_SHIFT
        self.first = True
Example #3
0
 def __init__(self, workdata, config):
     FileModule.__init__(self,workdata,config)
     logger.info("Created a mapper job for %s"%( self.appname ))