All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.wicp.tams.commons.binlog.IBinlogRead Maven / Gradle / Ivy

There is a newer version: 2.3.4
Show newest version
package net.wicp.tams.commons.binlog;

import java.io.IOException;

import net.wicp.tams.commons.Result;
import net.wicp.tams.commons.binlog.bean.CountNum;
import net.wicp.tams.commons.binlog.bean.Pos;

public interface IBinlogRead {
	public static final byte[] BINLOG_MAGIC = new byte[] { (byte) 0xfe, (byte) 0x62, (byte) 0x69, (byte) 0x6e };// 魔数

	public static final int HEAD_LENGTH = 19;

	public static final String BIN_ROW = "[%s:0x%s]";

	public Result checkHead();

	public void read(long pos) throws IOException;

	/***
	 * 返回当前的位点
	 * 
	 * @return
	 */
	public Pos curPos();

	/***
	 * 返回统计数据
	 * 
	 * @return
	 */
	public CountNum getCountNum();

	/***
	 * 重置增、删、改统计数据
	 */
	public void resetNum();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy