Class DynamicClassLoaderMessage

java.lang.Object
org.jcsp.net.dynamic.DynamicClassLoaderMessage
All Implemented Interfaces:
Serializable

class DynamicClassLoaderMessage extends Object implements Serializable
Wraps an object when it is being sent over a channel by the DataSerializationFilter so that it includes a NetChannelLocation referring to the JFTP request channel to service requests for the class's binary image if it is not held at the receiving end.
  • Field Details

    • createTime

      private long createTime
      Creation timestamp.
    • classLoaderToUse

      private transient ClassLoader classLoaderToUse
      The class loader to use when deserializing the object. This is not sent as part of the message - it is for use by methods invoked by the receiver.
    • classSourceChannelLoc

      private final NetChannelLocation classSourceChannelLoc
      The location of the request channel of the sender's JFTP process.
    • serializedData

      private SerializedData serializedData
      The serialized form of the user object being sent.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Diagnostic string identifying the message by timestamp.
      Overrides:
      toString in class Object
    • get

      Public accessor to deserialize and retrieve the object using the specified ClassManager.
      Parameters:
      cm - the class manager to use.
      Returns:
      the user object passed in this message.
      Throws:
      ClassNotFoundException
      IOException
    • setClassLoader

      public void setClassLoader(ClassLoader classLoader)
      Sets the class loader to use when deserializing the object.
      Parameters:
      classLoader - the new class loader.