com.continuent.tungsten.replicator.thl.log
Class LogEventReplWriter

java.lang.Object
  extended by com.continuent.tungsten.replicator.thl.log.LogEventReplWriter

public class LogEventReplWriter
extends java.lang.Object

This class encapsulates operations to write a log record header and serialized THLEvent.

Author:
Robert Hodges

Constructor Summary
LogEventReplWriter(THLEvent event, Serializer serializer, boolean checkCRC, java.io.File file)
          Instantiate the writer.
 
Method Summary
 LogRecord write()
          Write and return the log record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEventReplWriter

public LogEventReplWriter(THLEvent event,
                          Serializer serializer,
                          boolean checkCRC,
                          java.io.File file)
                   throws ReplicatorException
Instantiate the writer.

Throws:
ReplicatorException
Method Detail

write

public LogRecord write()
                throws ReplicatorException
Write and return the log record.

Throws:
ReplicatorException