org.jppf.server.node.remote
Class JPPFRemoteContainer

java.lang.Object
  extended by org.jppf.server.node.JPPFContainer
      extended by org.jppf.server.node.remote.JPPFRemoteContainer

public class JPPFRemoteContainer
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
 
Nested classes/interfaces inherited from class org.jppf.server.node.JPPFContainer
JPPFContainer.ObjectDeserializationTask
 
Field Summary
 
Fields inherited from class org.jppf.server.node.JPPFContainer
classLoader, helper, uuidPath
 
Constructor Summary
JPPFRemoteContainer(SocketWrapper socketClient, 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

JPPFRemoteContainer

public JPPFRemoteContainer(SocketWrapper socketClient,
                           List<String> uuidPath,
                           AbstractJPPFClassLoader classLoader)
                    throws Exception
Initialize this container with a specified application uuid.

Parameters:
socketClient - the socket connection wrapper.
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 Throwable
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:
Throwable - if an error occurs while deserializing.


Copyright © 2005-2010 JPPF Team.