public class DbReplay extends Object
| Modifier and Type | Field and Description |
|---|---|
static DateFormat |
DATEFORMAT |
| Constructor and Description |
|---|
DbReplay() |
| Modifier and Type | Method and Description |
|---|---|
to.etc.dbreplay.ReplayExecutor |
allocateExecutor()
Get a free executor from the executor free set, and return null if none available.
|
void |
endExecution(int q,
int u,
int error,
int rows) |
void |
executorReady(to.etc.dbreplay.ReplayExecutor replayExecutor) |
void |
executorStopped(to.etc.dbreplay.ReplayExecutor rx) |
static String |
format(Date dt)
Format a date.
|
int |
getInExecution() |
long |
getMaxStatementDelay() |
ConnectionPool |
getPool() |
String |
getRunSchema() |
void |
incConnSkips() |
void |
incIgnored() |
boolean |
isLogging() |
void |
log(String s) |
static void |
main(String[] args) |
void |
queueIdle(to.etc.dbreplay.ReplayRecord rr) |
int |
readByte() |
int |
readInt() |
long |
readLong() |
String |
readString() |
void |
releaseExecutor(to.etc.dbreplay.ReplayExecutor rx) |
void |
startExecution() |
void |
terminateAll()
Force all executors into termination asap.
|
void |
waitForIdle(long timeout)
Wait for all executors to become idle.
|
public static final DateFormat DATEFORMAT
public static void main(String[] args)
public void log(String s)
public boolean isLogging()
public long getMaxStatementDelay()
public ConnectionPool getPool()
public String getRunSchema()
@Nullable public String readString() throws Exception
is - Exceptionpublic void executorReady(to.etc.dbreplay.ReplayExecutor replayExecutor)
public void executorStopped(to.etc.dbreplay.ReplayExecutor rx)
public to.etc.dbreplay.ReplayExecutor allocateExecutor()
public void releaseExecutor(to.etc.dbreplay.ReplayExecutor rx)
public void terminateAll()
throws Exception
Exceptionpublic void waitForIdle(long timeout)
throws Exception
Exceptionpublic void incIgnored()
public void startExecution()
public void endExecution(int q,
int u,
int error,
int rows)
public int getInExecution()
public void incConnSkips()
Copyright © 2017 etc.to. All rights reserved.