|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.extractor.mysql.BinlogIndex
public class BinlogIndex
Reads and lists binlog files in the binlog index
| Constructor Summary | |
|---|---|
BinlogIndex(java.lang.String directory,
java.lang.String baseName,
boolean readIndex)
Creates a new BinlogIndex instance. |
|
| Method Summary | |
|---|---|
java.util.List<java.io.File> |
getBinlogFiles()
Returns the current list of binlog files. |
java.io.File |
nextBinlog(java.lang.String binlogName)
Return the next binlog file following the named file. |
void |
readIndex()
Refreshes the list of binlog files from current index contents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinlogIndex(java.lang.String directory,
java.lang.String baseName,
boolean readIndex)
throws ReplicatorException
BinlogIndex instance.
directory - Binlog directorybaseName - Binlog base name patternreadIndex - If true, read the index immediately
ReplicatorException - Throw if there is any kind of error| Method Detail |
|---|
public void readIndex()
throws ReplicatorException
ReplicatorException - Thrown if there is an error when reading
the filepublic java.io.File nextBinlog(java.lang.String binlogName)
binlogName - Basename of binlog file, e.g., mysql-bin.000023.
public java.util.List<java.io.File> getBinlogFiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||