IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1

com.ibm.websphere.objectgrid.plugins
LogSequenceTransformer

java.lang.Object
  |
  +--com.ibm.websphere.objectgrid.plugins.LogSequenceTransformer


This class will be used to serialize and de-serialize LogSequences. This provides an alternative to the standard readObject/writeObject mechanism that is part of the LogSequence implementation. By using these alternative methods, the user has more control over what parts and how the LogSequence is serialized and inflated.


Constructor Summary
LogSequenceTransformer()
          


Method Summary
public  voidserialize(java.util.Collection, java.io.ObjectOutputStream, com.ibm.websphere.objectgrid.plugins.LogSequenceFilter, com.ibm.websphere.objectgrid.plugins.DistributionMode)
           This method will provide an alternative to the standard serialization methods of writeObject and readObject. LogSequenceFilterDistributionMode
public  Collectioninflate(java.io.ObjectInputStream, com.ibm.websphere.objectgrid.ObjectGrid)
           This method will provide an alternative to the standard serialization methods of writeObject and readObject.

Inherited Methods

Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

LogSequenceTransformer

public LogSequenceTransformer( )


Method Detail

serialize

public void serialize(Collection logSequences,ObjectOutputStream stream, LogSequenceFilter filter, DistributionMode mode)
This method will provide an alternative to the standard serialization methods of writeObject and readObject. This method allows the caller to provide a filter for determining which LogElements to include in the serialization process. The DistributionMode parameter allows the caller to control the serialization process.
See Also:
    
Parameters:
    logSequences - A Collection of LogSequences that need to be serialized into the stream
    stream - The stream to serialize the LogSequence into.
    filter - A callback for determining whether to include a given LogElement in the serialized output.
    mode - Conditional or unconditional distribution of changes


Throws:
    java.io.IOException


inflate

public Collection inflate(ObjectInputStream stream,ObjectGrid objectGrid)
This method will provide an alternative to the standard serialization methods of writeObject and readObject. The caller needs to pass in the Stream that contains the serialized version of the LogSequence that was created via the serialize() method.
Parameters:
    stream - The stream to de-serialize the LogSequence from.
    objectGrid - The ObjectGrid instance that owns this LogSequence.


Returns:
     a Collection of LogSequences


Throws:
    java.io.IOExceptionjava.lang.ClassNotFoundException


IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1