code: public void createScheduler (final IThreadPool threadPool, final IJobStore jobStore) throws SchedulerException
    {
      createScheduler (DEFAULT_SCHEDULER_NAME, DEFAULT_INSTANCE_ID, threadPool, jobStore);
    }
docs: Creates a scheduler using the specified thread pool and job store. This
  scheduler can be retrieved via
  {@link DirectSchedulerFactory#getScheduler()}
  
  @param threadPool
  The thread pool for executing jobs
  @param jobStore
  The type of job store
  @throws SchedulerException
  if initialization failed