net.neoremind.fountain.rowbaselog.event
类 RotateEvent

java.lang.Object
  继承者 net.neoremind.fountain.event.BaseLogEvent
      继承者 net.neoremind.fountain.rowbaselog.event.RotateEvent
所有已实现的接口:
Serializable

public class RotateEvent
extends BaseLogEvent

binlog文件的结尾,通常(只要master不当机)就是ROTATE_EVENT或者STOP_EVENT

从以下版本开始:
2013-7-15
作者:
hanxu03, zhangxu
另请参见:
rotate-event, 序列化表格

字段摘要
 long nextLogEventPos
          下一个binlog事件的position
 String nextLogFileName
          下一个binglog文件名
 
构造方法摘要
RotateEvent(BinlogEventHeader eventHeader)
          Fixed data part:

8 bytes.

 
方法摘要
 BaseLogEvent parseData(ByteBuffer buf)
          解析二进制数据填充event属性数据
 
从类 net.neoremind.fountain.event.BaseLogEvent 继承的方法
getEventHeader
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

nextLogEventPos

public long nextLogEventPos
下一个binlog事件的position


nextLogFileName

public String nextLogFileName
下一个binglog文件名

构造方法详细信息

RotateEvent

public RotateEvent(BinlogEventHeader eventHeader)
Fixed data part:

8 bytes. The position of the first event in the next log file. Always contains the number 4 (meaning the next event starts at position 4 in the next binary log). This field is not present in v1; presumably the value is assumed to be 4.

Variable data part:

The name of the next binary log. The filename is not null-terminated. Its length is the event size minus the size of the fixed parts.

方法详细信息

parseData

public BaseLogEvent parseData(ByteBuffer buf)
从类 BaseLogEvent 复制的描述
解析二进制数据填充event属性数据

指定者:
类 BaseLogEvent 中的 parseData


Copyright © 2016 neoremind. All rights reserved.