Class JPPFRemoteContainer

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

public class JPPFRemoteContainer 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.
Author:
Laurent Cohen
  • Field Summary

    Fields inherited from class org.jppf.server.node.JPPFContainer

    classLoader, helper, serializer, uuidPath
  • Constructor Summary

    Constructors
    Constructor
    Description
    JPPFRemoteContainer(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 Type
    Method
    Description
    int
    deserializeObjects(Object[] list, int count, ExecutorService executor)
    Deserialize a number of objects from a socket client.
    void
    The node connection wrapper.

    Methods inherited from class org.jppf.server.node.JPPFContainer

    getAppUuid, getClassLoader, getLock, getSerializer, init, initHelper, isSequentialDeserialization, setClassLoader, setUuidPath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JPPFRemoteContainer

      public JPPFRemoteContainer(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, ExecutorService executor) throws Throwable
      Deserialize a number of objects from a socket client.
      Specified by:
      deserializeObjects in class org.jppf.server.node.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.
    • setNodeConnection

      public void setNodeConnection(RemoteNodeConnection nodeConnection)
      The node connection wrapper.
      Parameters:
      nodeConnection - the node connection to set.