public void setupExecutors ( ) throws ExecutorManagerException { final ImmutableSet < Executor > newExecutors = loadExecutors ( ) ; if ( newExecutors . isEmpty ( ) ) { final String error = "No active executors found" ; logger . error ( error ) ; throw new ExecutorManagerException ( error ) ; } else { this . activeExecutors = newExecutors ; } }
Loads executors . Can be also used to reload executors if there have been changes in the DB .