com.swak.archiver.executor.MysqlArchiverEngineExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swak-datarchiver-boot-starter Show documentation
Show all versions of swak-datarchiver-boot-starter Show documentation
swak component of data archiver spring boot starter
The newest version!
package com.swak.archiver.executor;
import com.swak.archiver.ArchiveHandler;
import com.swak.archiver.common.SwakTemplateExecutor;
import com.swak.archiver.notify.ArchiveMonitor;
import com.swak.archiver.spi.CountHandler;
import com.swak.archiver.spi.ExecuteMysqlHandler;
import com.swak.archiver.spi.MaxIdHandler;
import com.swak.archiver.spi.TableCheckHandler;
import java.util.ArrayList;
import java.util.List;
public class MysqlArchiverEngineExecutor extends ArchiverEngineExecutor{
private static final List ARCHIVER_MYSQL = new ArrayList(){{
add(new TableCheckHandler());
add(new CountHandler());
add(new MaxIdHandler());
add(new ExecuteMysqlHandler());
}};
public MysqlArchiverEngineExecutor(SwakTemplateExecutor executor, ArchiveMonitor monitor) {
super(executor, monitor);
}
@Override
protected List getArchiveHandler() {
return ARCHIVER_MYSQL;
}
}