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

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

public class LogEventRotateWriter
extends java.lang.Object

This class encapsulates operations to write a log rotate event.

Author:
Robert Hodges

Constructor Summary
LogEventRotateWriter(java.io.File file, long index, boolean checkCRC)
          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

LogEventRotateWriter

public LogEventRotateWriter(java.io.File file,
                            long index,
                            boolean checkCRC)
                     throws ReplicatorException
Instantiate the writer.

Throws:
ReplicatorException
Method Detail

write

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

Throws:
ReplicatorException