com.continuent.tungsten.replicator.extractor.mysql
Class RotateLogEvent

java.lang.Object
  extended by com.continuent.tungsten.replicator.extractor.mysql.LogEvent
      extended by com.continuent.tungsten.replicator.extractor.mysql.RotateLogEvent

public class RotateLogEvent
extends LogEvent

Version:
1.0
Author:
Seppo Jaakola, Stephane Giron

Field Summary
 
Fields inherited from class com.continuent.tungsten.replicator.extractor.mysql.LogEvent
execTime, flags, logPos, serverId, startPosition, threadSpecificEvent, type, when
 
Constructor Summary
RotateLogEvent(byte[] buffer, int eventLength, FormatDescriptionLogEvent descriptionEvent, java.lang.String currentPosition)
          Creates a new Rotate_log_event object read normally from log.
RotateLogEvent(java.lang.String newLogFilename)
          Creates a new Rotate_log_event without log information.
 
Method Summary
 java.lang.String getNewBinlogFilename()
           
 
Methods inherited from class com.continuent.tungsten.replicator.extractor.mysql.LogEvent
doChecksum, extractDecimal, getDecimalBinarySize, getExecTime, getNextEventPosition, getType, getWhen, hexdump, hexdump, hexdump, readLogEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotateLogEvent

public RotateLogEvent(byte[] buffer,
                      int eventLength,
                      FormatDescriptionLogEvent descriptionEvent,
                      java.lang.String currentPosition)
               throws ReplicatorException
Creates a new Rotate_log_event object read normally from log.

Parameters:
currentPosition -
Throws:
ReplicatorException

RotateLogEvent

public RotateLogEvent(java.lang.String newLogFilename)
Creates a new Rotate_log_event without log information. This is used to generate missing log rotation events.

Method Detail

getNewBinlogFilename

public java.lang.String getNewBinlogFilename()