Package org.jcsp.net.dynamic
Class NodeClassLoader.LoaderThread
java.lang.Object
org.jcsp.net.dynamic.NodeClassLoader.LoaderThread
- All Implemented Interfaces:
CSProcess
- Enclosing class:
NodeClassLoader
Child process to communicate with the JFTP process, issuing requests to it and waiting for
replies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassManager
The class manager for managing classes dynamically loaded by this node.private final AltingChannelInput
Requests for classes will be received on this channel.private final ChannelOutput
When classes have arrived they will be passed out on this channel.private final ClassLoader
The class loader owning this process which should be associated with classes marked as pending.private final NetChannelLocation
Location of a JFTP process request channel. -
Constructor Summary
ConstructorsConstructorDescriptionLoaderThread
(NetChannelLocation sourceChannelLocation, AltingChannelInput classRequest, ChannelOutput classResponse, ClassLoader deferredLoader, ClassManager classManager) Constructs a newLoaderThread
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Main process loop, servicing requests for classes from this node and receiving class replies from the JFTP process of a remote node.
-
Field Details
-
sourceChannelLocation
Location of a JFTP process request channel. -
classRequest
Requests for classes will be received on this channel. -
classResponse
When classes have arrived they will be passed out on this channel. -
deferredLoader
The class loader owning this process which should be associated with classes marked as pending. -
classManager
The class manager for managing classes dynamically loaded by this node.
-
-
Constructor Details
-
LoaderThread
public LoaderThread(NetChannelLocation sourceChannelLocation, AltingChannelInput classRequest, ChannelOutput classResponse, ClassLoader deferredLoader, ClassManager classManager) Constructs a newLoaderThread
.- Parameters:
sourceChannelLocation
- location of a JFTP process request channel.classRequest
- requests for classes will be received on this channel.classResponse
- when classes have arrived they will be passed out on this channel.deferredLoader
- the class loader that owns this process which will be associated with pending classes found in a manifest response.classManager
- the class manager for managing classes dynamically loaded by this node.
-
-
Method Details