def run(self):
    for line in self.logLineList:
        currTime = line.getTime()
        for limitProcessor in self.limitProcessorList:
            limitProcessor.evictExpired(currTime)
        self.unbanPassedIPs(currTime)
        for limitProcessor in self.limitProcessorList:
            newBanMap = limitProcessor.processNewRequest(line)
            self.processNewBan(newBanMap, currTime)
    if (self.logLineList and self.ipToUnbanTimeMap):
        for ip in self.ipToUnbanTimeMap:
            print('{0},UNBAN,{1}'.format(int(self.ipToUnbanTimeMap[ip].timestamp()), ip))
def run(self):
    for line in self.logLineList:
        currTime = line.getTime()
        for limitProcessor in self.limitProcessorList:
            limitProcessor.evictExpired(currTime)
        self.unbanPassedIPs(currTime)
        for limitProcessor in self.limitProcessorList:
            newBanMap = limitProcessor.processNewRequest(line)
            self.processNewBan(newBanMap, currTime)
    if (self.logLineList and self.ipToUnbanTimeMap):
        for ip in self.ipToUnbanTimeMap:
            print('{0},UNBAN,{1}'.format(int(self.ipToUnbanTimeMap[ip].timestamp()), ip))