Class DataSerializationFilter

  • All Implemented Interfaces:
    Filter

    class DataSerializationFilter
    extends java.lang.Object
    implements Filter

    A filter to be plugged into the sending end of a channel if dynamic class transfer is to be supported over the channel. The receiving end of the channel should have a DeserializeChannelFilter plugged in. Any objects send by this filter will be wrapped in a DynamicClassLoaderMessage object which includes the NetChannelLocation of a channel for the local node's JFTP service.

    Instances of this class will be created by the DynamicClassLoader service and should be obtained via its getTxFilter method.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private NetChannelLocation senderLoc
      Location of the JFTP service's request channel.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object filter​(java.lang.Object obj)
      Wraps the object in a DynamicClassLoaderMessage complete with the JFTP channel location passed to the filter's constructor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • senderLoc

        private NetChannelLocation senderLoc
        Location of the JFTP service's request channel.
    • Constructor Detail

      • DataSerializationFilter

        public DataSerializationFilter​(NetChannelLocation senderLoc)
        Constructs a new DataSerializationFilter object.
        Parameters:
        senderLoc - the location of the JFTP service's request channel.
    • Method Detail

      • filter

        public java.lang.Object filter​(java.lang.Object obj)
        Wraps the object in a DynamicClassLoaderMessage complete with the JFTP channel location passed to the filter's constructor.
        Specified by:
        filter in interface Filter
        Parameters:
        obj - the object to wrap up
        Returns:
        the wrapped object