super.start();
} catch (JMuleManagerException e) {
e.printStackTrace();
return ;
}
remove_temp_banned_peers_timer = new Timer( "Remove temp banned peers timer", true );
remove_temp_banned_peers_timer.scheduleAtFixedRate(new TimerTask() {
@Override
public void run() {
for(TemporaryBannedIP banned_ip : temporary_banned_peers)
if( ( System.currentTimeMillis() - banned_ip.getWhenBanned() ) >= banned_ip.getHowLong() )
temporary_banned_peers.remove( banned_ip );
}
}, (long)1, REMOVE_TEMP_BANNED_PEERS_INTERVAL);
remove_temp_banned_servers_timer = new Timer( "Remove temp banned servers timer", true);
remove_temp_banned_servers_timer.scheduleAtFixedRate(new TimerTask() {
@Override
public void run() {
for(TemporaryBannedIP banned_ip : temporary_banned_servers)
if( ( System.currentTimeMillis() - banned_ip.getWhenBanned() ) >= banned_ip.getHowLong() )