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 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.
- Author:
- Laurent Cohen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPPFLocalContainer
public JPPFLocalContainer(LocalNodeChannel channel,
List<String> uuidPath,
AbstractJPPFClassLoader classLoader)
throws Exception
- Initialize this container with a specified application uuid.
- Parameters:
channel - the I/O channelof the node.uuidPath - the unique identifier of a submitting application.classLoader - the class loader for this container.
- Throws:
Exception - if an error occurs while initializing.
deserializeObjects
public int deserializeObjects(List<Object> list,
int count,
ExecutorService executor)
throws Exception
- Deserialize a number of objects from a socket client.
- Specified by:
deserializeObjects in class JPPFContainer
- Parameters:
list - a list holding the resulting deserialized objects.count - 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.
Copyright © 2005-2010 JPPF Team.