Class ClassLoaderRequestHandler

java.lang.Object
org.jppf.classloader.ClassLoaderRequestHandler

public class ClassLoaderRequestHandler extends Object
This class manages the batching of class loading requests at regular intervals.
Author:
Laurent Cohen
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClassLoaderRequestHandler(org.jppf.classloader.ResourceRequestRunner requestRunner)
    Initialize this request handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    Future<org.jppf.classloader.JPPFResourceWrapper>
    addRequest(org.jppf.classloader.JPPFResourceWrapper resource)
    Add a resource request.
    org.jppf.classloader.ResourceRequestRunner
    Close this request handler and release its resources.
    org.jppf.classloader.ResourceRequestRunner
    Get the bject which sends the class loading requets to the driver and receives the response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClassLoaderRequestHandler

      public ClassLoaderRequestHandler(org.jppf.classloader.ResourceRequestRunner requestRunner)
      Initialize this request handler.
      Parameters:
      requestRunner - the periodic task submitted to the scheduled executor.
  • Method Details

    • addRequest

      public Future<org.jppf.classloader.JPPFResourceWrapper> addRequest(org.jppf.classloader.JPPFResourceWrapper resource)
      Add a resource request.
      Parameters:
      resource - the resource request to add.
      Returns:
      a future for getting the respone at a later time.
    • close

      public org.jppf.classloader.ResourceRequestRunner close()
      Close this request handler and release its resources.
      Returns:
      the ResourceRequestRunner.
    • getRequestRunner

      public org.jppf.classloader.ResourceRequestRunner getRequestRunner()
      Get the bject which sends the class loading requets to the driver and receives the response.
      Returns:
      a ResourceRequestRunner instance.