public class Dump extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destory() |
void |
dumpLog(String binlogFilename,
long binlogPos,
long ServerId,
boolean curFile,
String dbPattern,
String tbPattern,
CountNum countNum,
ISender... senders) |
void |
dumpLog(String binlogFilename,
long binlogPos,
long ServerId,
String dbPattern,
String tbPattern,
CountNum countNum,
ISender... senders) |
void |
dumpLogGtid(String gtidStr,
long ServerId,
boolean curFile,
String dbPattern,
String tbPattern,
CountNum countNum,
ISender... senders) |
void |
dumpLogGtid(String gtidStr,
String binlogFilename,
long binlogPos,
long ServerId,
boolean curFile,
String dbPattern,
String tbPattern,
CountNum countNum,
ISender... senders) |
Checksum |
getBinlogChecksum()
得到当前的binlog_checksum
|
BinglogReadDump |
getBinlogParser() |
CountNum |
getCountNum() |
Pos |
getDumpPos()
得到当前的位点
|
String |
getGtidExecuted() |
String |
getGtidPurged() |
YesOrNo |
getGtidSupport() |
long |
getMasterServerId() |
String |
getUUID() |
String |
getVar(String var,
boolean isGlobal) |
boolean |
isAvailable(String gtidStr,
String uuid)
gitd能否可用
|
Result |
login(String user,
String pwd,
String defaultSchema) |
AbsResultPacket |
sendSingleCommand(Command command)
发送单个命令
|
PacketBean |
sendSql(String sql) |
AbsResultPacket |
setDefaultDb(String defaultDb) |
List<List<RsCol>> |
sqlQuery(String sql) |
public Result login(String user, String pwd, String defaultSchema) throws IOException
IOExceptionpublic void dumpLog(String binlogFilename, long binlogPos, long ServerId, boolean curFile, String dbPattern, String tbPattern, CountNum countNum, ISender... senders) throws IOException
IOExceptionpublic void dumpLogGtid(String gtidStr, String binlogFilename, long binlogPos, long ServerId, boolean curFile, String dbPattern, String tbPattern, CountNum countNum, ISender... senders) throws IOException
IOExceptionpublic void dumpLogGtid(String gtidStr, long ServerId, boolean curFile, String dbPattern, String tbPattern, CountNum countNum, ISender... senders) throws IOException
IOExceptionpublic long getMasterServerId()
throws IOException
IOExceptionpublic YesOrNo getGtidSupport() throws IOException
IOExceptionpublic String getUUID() throws IOException
IOExceptionpublic String getGtidPurged() throws IOException
IOExceptionpublic String getGtidExecuted() throws IOException
IOExceptionpublic String getVar(String var, boolean isGlobal) throws IOException
IOExceptionpublic Checksum getBinlogChecksum() throws IOException
IOExceptionpublic boolean isAvailable(String gtidStr, String uuid) throws IOException
gtidStr - 要验证的gtiduuid - 当前uuidIOExceptionpublic PacketBean sendSql(String sql) throws IOException
IOExceptionpublic Pos getDumpPos()
public CountNum getCountNum()
public BinglogReadDump getBinlogParser()
public void dumpLog(String binlogFilename, long binlogPos, long ServerId, String dbPattern, String tbPattern, CountNum countNum, ISender... senders) throws IOException
IOExceptionpublic List<List<RsCol>> sqlQuery(String sql) throws IOException
IOExceptionpublic AbsResultPacket sendSingleCommand(Command command) throws IOException
command - 命令IOExceptionpublic AbsResultPacket setDefaultDb(String defaultDb) throws IOException
IOExceptionpublic void destory()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.