class NodeClassLoader
extends java.lang.ClassLoader
Modifier and Type | Class and Description |
---|---|
private static class |
NodeClassLoader.LoaderThread
Child process to communicate with the JFTP process, issuing requests to it and waiting for
replies.
|
Modifier and Type | Field and Description |
---|---|
private ClassManager |
classManager
The class manager responsible for managing dynamically loaded classes at this node.
|
private One2OneChannel |
classReq
Channel for passing requests from the
findClass method to the child process. |
private One2OneChannel |
classResp
Channel for returning data from the child process to the
findClass method. |
Constructor and Description |
---|
NodeClassLoader(NetChannelLocation sourceChannelLocation,
ClassManager cm)
Constructs a new
NodeClassLoader for loading classes held by a JFTP process at
another node. |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
findClass(java.lang.String name)
Issues a request to the child process to get a class definition from the remote JFTP process.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
private final One2OneChannel classReq
findClass
method to the child process.private final One2OneChannel classResp
findClass
method.private final ClassManager classManager
public NodeClassLoader(NetChannelLocation sourceChannelLocation, ClassManager cm)
NodeClassLoader
for loading classes held by a JFTP process at
another node. On construction a child thread is spawned.sourceChannelLocation
- location of the request channel of a remote JFTP process.cm
- class manager responsible for dynamically loaded classes at this node.public java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
name
- name of the class to load.java.lang.ClassNotFoundException
- if the remote node did not have the class.