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
DeserializeChannelFilter
plugged in. Any objects send by this filter will be wrapped in aDynamicClassLoaderMessage
object which includes theNetChannelLocation
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 itsgetTxFilter
method.
-
-
Field Summary
Fields Modifier and Type Field Description private NetChannelLocation
senderLoc
Location of the JFTP service's request channel.
-
Constructor Summary
Constructors Constructor Description DataSerializationFilter(NetChannelLocation senderLoc)
Constructs a newDataSerializationFilter
object.
-
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 aDynamicClassLoaderMessage
complete 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 newDataSerializationFilter
object.- Parameters:
senderLoc
- the location of the JFTP service's request channel.
-
-