* @param factory the thread pool factory
*/
public Scheduler(Configuration config, ThreadPoolFactory factory) {
super(SCHEDULER_NAME);
SchedulerConfiguration schedConfig =
config.getSchedulerConfiguration();
int count = schedConfig.getMaxThreads();
if (count < MIN_THREAD_COUNT) {
count = MIN_THREAD_COUNT;
}
// create the thread pool