|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.objectgrid.plugins.LogSequenceTransformer
public class LogSequenceTransformer
This class is used to serialize and de-serialize LogSequence
s. It 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.
LogSequence
Constructor Summary | |
---|---|
LogSequenceTransformer()
|
Method Summary | |
---|---|
static Collection |
inflate(ObjectInputStream stream,
ObjectGrid objectGrid)
Provides an alternative to the standard serialization method of readObject . |
static void |
serialize(Collection logSequences,
ObjectOutputStream stream,
LogSequenceFilter filter,
DistributionMode mode)
Provides an alternative to the standard serialization method of writeObject . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogSequenceTransformer()
Method Detail |
---|
public static void serialize(Collection logSequences, ObjectOutputStream stream, LogSequenceFilter filter, DistributionMode mode) throws IOException
writeObject
.
This method allows the caller to provide a filter for determining which LogElement
s to include in
the serialization process. The DistributionMode
parameter allows the caller to control the
serialization process.
logSequences
- a collection of LogSequences that need to be serialized into the stream. Caller must guarantee the
collection contains only LogSequence objects.stream
- the stream to serialize the LogSequence into. Caller must guarantee this argument is not
null
filter
- a filter callback for determining whether to include a given LogElement in the serialized output. This
argument is optional. A null
value indicates not to filter the LogSequencesmode
- Conditional or unconditional distribution of changes. The call must guarantee this argument is not
null
IOException
- if an error occurs during serialization of the LogSequencesLogSequenceFilter
,
DistributionMode
public static Collection inflate(ObjectInputStream stream, ObjectGrid objectGrid) throws IOException, ClassNotFoundException
readObject
.
The caller needs to pass in the stream that contains the serialized version of the LogSequences that were
serialized using the serialize
method.
stream
- the stream to de-serialize the LogSequences from.objectGrid
- the ObjectGrid instance that owns this LogSequence.
IOException
- if an error occurs during deserialization of the LogSequences
ClassNotFoundException
- if a class isn't found during deserialization of the LogSequencesserialize(Collection, ObjectOutputStream, LogSequenceFilter, DistributionMode)
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |