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 Classes
    Modifier and Type
    Interface
    Description
    static class 
    Factory class for instantiating a default or configured serialization.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deserialize an object from the specified input stream.
    void
    Serialize an object into the specified output stream.
  • Method Details

    • serialize

      void serialize(Object o, OutputStream os) throws Exception
      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

      Object deserialize(InputStream is) throws Exception
      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.