Package org.jppf.serialization
Interface JPPFSerialization
- All Known Implementing Classes:
DefaultJavaSerialization,DefaultJPPFSerialization,JPPFCompositeSerialization,LZ4Serialization,XstreamSerialization,ZLIBSerialization
public interface JPPFSerialization
Interface and factory for object serialization and deserialization schemes in JPPF.
A serialization scheme is defined as an implementation of this interface,
and configured in a JPPF configuration file using the property definition:
jppf.object.serialization.class = my.implementation.OfJPPFSerialization
The same implementation must be used for all nodes, servers and clients.
- Author:
- Laurent Cohen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFactory class for instantiating a default or configured serialization. -
Method Summary
Modifier and TypeMethodDescriptionDeserialize an object from the specified input stream.voidserialize(Object o, OutputStream os) Serialize an object into the specified output stream.
-
Method Details
-
serialize
Serialize an object into the specified output stream.- Parameters:
o- the object to serialize.os- the stream that receives the serialized object.- Throws:
Exception- if any error occurs.
-
deserialize
Deserialize an object from the specified input stream.- Parameters:
is- the stream from which to deserialize.- Returns:
- the serialized object.
- Throws:
Exception- if any error occurs.
-