com.swak.archiver.executor.ClickArchiverEngineExecutor 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.clickhouse.ExecuteClickHandler;
import com.swak.archiver.spi.clickhouse.PartitionCheckHandler;
import com.swak.archiver.spi.clickhouse.PartitionClickhouseHandler;
import java.util.ArrayList;
import java.util.List;
public class ClickArchiverEngineExecutor extends ArchiverEngineExecutor{
private static final List ARCHIVER_CLICK_HOUSE = new ArrayList(){{
add(new PartitionClickhouseHandler());
add(new PartitionCheckHandler());
add(new ExecuteClickHandler());
}};
public ClickArchiverEngineExecutor(SwakTemplateExecutor executor, ArchiveMonitor monitor) {
super(executor, monitor);
}
@Override
protected List getArchiveHandler() {
return ARCHIVER_CLICK_HOUSE;
}
}