Package org.jcsp.net.dynamic
Class DataSerializationFilter
- java.lang.Object
-
- org.jcsp.net.dynamic.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
DeserializeChannelFilterplugged in. Any objects send by this filter will be wrapped in aDynamicClassLoaderMessageobject which includes theNetChannelLocationof a channel for the local node's JFTP service.Instances of this class will be created by the
DynamicClassLoaderservice and should be obtained via itsgetTxFiltermethod.
-
-
Field Summary
Fields Modifier and Type Field Description private NetChannelLocationsenderLocLocation of the JFTP service's request channel.
-
Constructor Summary
Constructors Constructor Description DataSerializationFilter(NetChannelLocation senderLoc)Constructs a newDataSerializationFilterobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectfilter(java.lang.Object obj)Wraps the object in aDynamicClassLoaderMessagecomplete with the JFTP channel location passed to the filter's constructor.
-
-
-
Field Detail
-
senderLoc
private NetChannelLocation senderLoc
Location of the JFTP service's request channel.
-
-
Constructor Detail
-
DataSerializationFilter
public DataSerializationFilter(NetChannelLocation senderLoc)
Constructs a newDataSerializationFilterobject.- Parameters:
senderLoc- the location of the JFTP service's request channel.
-
-