public class DirectLogFetcher extends LogFetcher
| 限定符和类型 | 字段和说明 |
|---|---|
static byte |
COM_BINLOG_DUMP
Command to dump binlog
|
protected static org.slf4j.Logger |
logger |
static int |
MASTER_HEARTBEAT_PERIOD_SECONDS |
static int |
MAX_PACKET_LENGTH
Maximum packet length
|
static int |
NET_HEADER_SIZE
Packet header sizes
|
static int |
PACKET_LEN_OFFSET
Packet offsets
|
static int |
PACKET_SEQ_OFFSET |
static int |
SQLSTATE_LENGTH |
BIN_LOG_HEADER_SIZE, DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_CAPACITY, factorBIGINT_MAX_VALUE, buffer, DIG_BASE, DIG_MAX, DIG_PER_DEC1, DIG_PER_INT32, dig2bytes, ISO_8859_1, limit, NULL_LENGTH, origin, position, powers10, semival, SIZE_OF_INT32| 构造器和说明 |
|---|
DirectLogFetcher() |
DirectLogFetcher(int initialCapacity) |
DirectLogFetcher(int initialCapacity,
float growthFactor) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
fetch() |
void |
start(SocketChannel channel) |
ensureCapacitycapacity, consume, duplicate, duplicate, duplicate, fillBitmap, fillBitmap, fillBytes, fillBytes, fillOutput, fillOutput, forward, getBeInt16, getBeInt16, getBeInt24, getBeInt24, getBeInt32, getBeInt32, getBeLong48, getBeLong48, getBeLong64, getBeLong64, getBeUint16, getBeUint16, getBeUint24, getBeUint24, getBeUint32, getBeUint32, getBeUlong40, getBeUlong40, getBeUlong48, getBeUlong48, getBeUlong56, getBeUlong56, getBeUlong64, getBeUlong64, getBitmap, getBitmap, getData, getData, getData, getDecimal, getDecimal, getDouble64, getDouble64, getFixString, getFixString, getFixString, getFixString, getFloat32, getFloat32, getFullString, getFullString, getInt16, getInt16, getInt24, getInt24, getInt32, getInt32, getInt8, getInt8, getLong48, getLong48, getLong64, getLong64, getPackedLong, getPackedLong, getString, getString, getString, getString, getUint16, getUint16, getUint24, getUint24, getUint32, getUint32, getUint8, getUint8, getUlong40, getUlong40, getUlong48, getUlong48, getUlong56, getUlong56, getUlong64, getUlong64, hasRemaining, hexdump, hexdump, limit, limit, position, position, remaining, rewindprotected static final org.slf4j.Logger logger
public static final int MASTER_HEARTBEAT_PERIOD_SECONDS
public static final byte COM_BINLOG_DUMP
public static final int NET_HEADER_SIZE
public static final int SQLSTATE_LENGTH
public static final int PACKET_LEN_OFFSET
public static final int PACKET_SEQ_OFFSET
public static final int MAX_PACKET_LENGTH
public DirectLogFetcher()
public DirectLogFetcher(int initialCapacity)
public DirectLogFetcher(int initialCapacity,
float growthFactor)
public void start(SocketChannel channel) throws java.io.IOException
java.io.IOExceptionpublic boolean fetch()
throws java.io.IOException
fetch 在类中 LogFetcherjava.io.IOExceptionLogFetcher.fetch()public void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 LogFetcherjava.io.IOExceptionLogFetcher.close()Copyright © 2019. All rights reserved.