public void init() throws Exception {
  loadParameterFromZK();
  _invalidLoginCleanupExecutor.scheduleWithFixedDelay(new InvalidLoginCleaner(),CLEANUP_THREAD_SCHEDULE_INTERVAL_IN_MINS,CLEANUP_THREAD_SCHEDULE_INTERVAL_IN_MINS,TimeUnit.MINUTES);
  _log.info("Max invalid login attempts from the same client IP: {}",_maxAuthnLoginAttemtsCount);
  _log.info("Life time in minutes of invalid login records for a client IP: {}",_maxAuthnLoginAttemtsLifeTimeInMins);
  _log.info("Cleanup thread schedule interval: {} minutes",CLEANUP_THREAD_SCHEDULE_INTERVAL_IN_MINS);
}

public void init ( ) throws Exception { loadParameterFromZK ( ) ; _invalidLoginCleanupExecutor . scheduleWithFixedDelay ( new InvalidLoginCleaner ( ) , CLEANUP_THREAD_SCHEDULE_INTERVAL_IN_MINS , CLEANUP_THREAD_SCHEDULE_INTERVAL_IN_MINS , TimeUnit . MINUTES ) ; _log . info ( "Max invalid login attempts from the same client IP: {}" , _maxAuthnLoginAttemtsCount ) ; _log . info ( "Life time in minutes of invalid login records for a client IP: {}" , _maxAuthnLoginAttemtsLifeTimeInMins ) ; _log . info ( "Cleanup thread schedule interval: {} minutes" , CLEANUP_THREAD_SCHEDULE_INTERVAL_IN_MINS ) ; }
initialize the background task to be run every hour . at each run that task will walk through the invalid login records and clean all expired records .
