Examples of StrategyClassLoader


Examples of ca.eandb.util.classloader.StrategyClassLoader

     * @throws ClassNotFoundException If a class required by the job is
     *     missing.
     * @throws JobExecutionException If the job throws an exception.
     */
    public void initializeJob(Serialized<ParallelizableJob> job) throws ClassNotFoundException, JobExecutionException {
      this.classLoader  = new StrategyClassLoader(classManager, JobServer.class.getClassLoader());
      this.job      = new JobExecutionWrapper(job.deserialize(classLoader));
      this.worker      = new Serialized<TaskWorker>(this.job.worker());
      notifyStatusChanged("");

      this.workingDirectory.mkdir();
View Full Code Here

Examples of ca.eandb.util.classloader.StrategyClassLoader

          strategy = new DbCachingJobServiceClassLoaderStrategy(service, jobId, dataSource);
        } else {
          strategy = new InternalCachingJobServiceClassLoaderStrategy(service, jobId);
        }

        ClassLoader loader = new StrategyClassLoader(strategy, ThreadServiceWorker.class.getClassLoader());
        ref.worker = envelope.deserialize(loader);

        if (logger.isInfoEnabled()) {
          logger.info(String.format("Got worker (thread=%d)", Thread.currentThread().getId()));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.