Class BackendClassLoader

java.lang.Object
java.lang.ClassLoader
edu.rit.pj.cluster.BackendClassLoader

public class BackendClassLoader extends ClassLoader
Class BackendClassLoader provides a class loader for a job backend process in the PJ cluster middleware. If a backend class loader is requested to load a class and the parent class loaders cannot do so, the backend class loader sends a request for the class file to the job frontend process, waits for the job frontend process to send the class file, and loads the class.
Version:
15-Jun-2012
Author:
Alan Kaminsky
  • Constructor Details

    • BackendClassLoader

      public BackendClassLoader(JobBackendRef theJobBackend, JobFrontendRef theJobFrontend, ResourceCache theCache)
      Construct a new backend class loader. The parent class loader is the one returned by ClassLoader.getSystemClassLoader(). Class files will be requested from theJobFrontend. Class files will be stored in theCache.
      Parameters:
      theJobBackend - Reference to job backend.
      theJobFrontend - Reference to job frontend.
      theCache - Resource cache.
    • BackendClassLoader

      public BackendClassLoader(ClassLoader parent, JobBackendRef theJobBackend, JobFrontendRef theJobFrontend, ResourceCache theCache)
      Construct a new backend class loader. The parent class loader is parent. Class files will be requested from theJobFrontend. Class files will be stored in theCache.
      Parameters:
      parent - Parent class loader.
      theJobBackend - Reference to job backend.
      theJobFrontend - Reference to job frontend.
      theCache - Resource cache.
  • Method Details