org.jppf.server.node.local
Class JPPFLocalContainer

java.lang.Object
  extended by org.jppf.server.node.JPPFContainer
      extended by 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

Nested Class Summary
protected  class JPPFLocalContainer.ObjectDeserializationTask
          Instances of this class are used to deserialize objects from an incoming message in parallel.
 
Field Summary
 
Fields inherited from class org.jppf.server.node.JPPFContainer
classLoader, helper, uuidPath
 
Constructor Summary
JPPFLocalContainer(LocalNodeChannel channel, List<String> uuidPath, AbstractJPPFClassLoader classLoader)
          Initialize this container with a specified application uuid.
 
Method Summary
 int deserializeObjects(List<Object> list, int count, ExecutorService executor)
          Deserialize a number of objects from a socket client.
 
Methods inherited from class org.jppf.server.node.JPPFContainer
deserializeObject, getAppUuid, getClassLoader, init, initHelper, setUuidPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.