Package org.jppf.server.node.local
Class JPPFLocalContainer
java.lang.Object
org.jppf.server.node.JPPFContainer
org.jppf.server.node.local.JPPFLocalContainer
public class JPPFLocalContainer
extends org.jppf.server.node.JPPFContainer
Instances of this class represent dynamic class loading, and serialization/deserialization, capabilities, associated
with a specific client application.
The application is identified through a unique uuid. This class effectively acts as a container for the classes of a client application, a provides the methods to enable the transport, serialization and deserialization of these classes.
The application is identified through a unique uuid. This class effectively acts as a container for the classes of a client application, a provides the methods to enable the transport, serialization and deserialization of these classes.
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from class org.jppf.server.node.JPPFContainer
classLoader, helper, serializer, uuidPath -
Constructor Summary
ConstructorsConstructorDescriptionJPPFLocalContainer(org.jppf.server.node.AbstractCommonNode node, List<String> uuidPath, org.jppf.classloader.AbstractJPPFClassLoader classLoader, boolean clientAccess) Initialize this container with a specified application uuid. -
Method Summary
Modifier and TypeMethodDescriptionintdeserializeObjects(Object[] list, int count, ExecutorService executor) intdeserializeObjects(Object[] list, int count, LocalNodeMessage currentMessage, ExecutorService executor) Deserialize a number of objects from a socket client.Methods inherited from class org.jppf.server.node.JPPFContainer
getAppUuid, getClassLoader, getLock, getSerializer, init, initHelper, isSequentialDeserialization, setClassLoader, setUuidPath
-
Constructor Details
-
JPPFLocalContainer
public JPPFLocalContainer(org.jppf.server.node.AbstractCommonNode node, List<String> uuidPath, org.jppf.classloader.AbstractJPPFClassLoader classLoader, boolean clientAccess) throws Exception Initialize this container with a specified application uuid.- Parameters:
node- the node holding this container.uuidPath- the unique identifier of a submitting application.classLoader- the class loader for this container.clientAccess- whether the node has access to the client that submitted the job.- Throws:
Exception- if an error occurs while initializing.
-
-
Method Details
-
deserializeObjects
public int deserializeObjects(Object[] list, int count, LocalNodeMessage currentMessage, ExecutorService executor) throws Exception Deserialize a number of objects from a socket client.- Parameters:
list- a list holding the resulting deserialized objects.count- the number of objects to deserialize.currentMessage- the number of objects to deserialize.executor- the number of objects to deserialize.- Returns:
- the new position in the source data after deserialization.
- Throws:
Exception- if an error occurs while deserializing.
-
deserializeObjects
- Specified by:
deserializeObjectsin classorg.jppf.server.node.JPPFContainer- Throws:
Exception
-