def createMapperTwo(self): mapperTwo = Mapper(5002 + (self.num - 1) * 10, self.ip, 2) mapperTwo.logging(False) mapperTwo.log('Starting Up') # execution code goes here mapperTwo.listen() # exiting mapperTwo.log('Exiting')
def createMapperOne(self): mapperOne = Mapper(5001 + (self.num - 1) * 10, self.ip, 1) mapperOne.logging(False) mapperOne.log('Starting Up') # execution code goes here mapperOne.listen() # exiting mapperOne.log('Exiting')