Interface ClassLoaderConnection<C>

Type Parameters:
C - the type of communication channel used by this connection.
All Superinterfaces:
NodeConnection<C>
All Known Implementing Classes:
AbstractClassLoaderConnection, AsyncLocalClassLoaderConnection, RemoteClassLoaderConnection

public interface ClassLoaderConnection<C> extends NodeConnection<C>
Instances of this class represent the connection between a node's class loader and the driver.
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jppf.classloader.JPPFResourceWrapper
    loadResource(Map<org.jppf.classloader.ResourceIdentifier,Object> map, boolean dynamic, String requestUuid, List<String> uuidPath)
    Load the specified class from a driver connection.

    Methods inherited from interface org.jppf.node.NodeConnection

    close, getChannel, init, reset
  • Method Details

    • loadResource

      org.jppf.classloader.JPPFResourceWrapper loadResource(Map<org.jppf.classloader.ResourceIdentifier,Object> map, boolean dynamic, String requestUuid, List<String> uuidPath) throws Exception
      Load the specified class from a driver connection.
      Parameters:
      map - contains the necessary resource request data.
      dynamic - true for a client class loader, false otherwise.
      requestUuid - identifies for which job the request is made.
      uuidPath - identifies the path to the driver or client that wil lookup and send back the requested resource.
      Returns:
      a JPPFResourceWrapper containing the resource content.
      Throws:
      Exception - if the connection was lost and could not be reestablished.