Search in sources :

Example 1 with VersionedFile

use of com.actiontech.dble.backend.mysql.xa.VersionedFile in project dble by actiontech.

the class FileSystemRepository method init.

@Override
public void init() {
    SystemConfig systemConfig = DbleServer.getInstance().getConfig().getSystem();
    String baseDir = systemConfig.getXaRecoveryLogBaseDir();
    String baseName = systemConfig.getXaRecoveryLogBaseName();
    LOGGER.debug("baseDir " + baseDir);
    LOGGER.debug("baseName " + baseName);
    // Judge whether exist the basedir
    createBaseDir(baseDir);
    file = new VersionedFile(baseDir, baseName, ".log");
}
Also used : SystemConfig(com.actiontech.dble.config.model.SystemConfig) VersionedFile(com.actiontech.dble.backend.mysql.xa.VersionedFile)

Aggregations

VersionedFile (com.actiontech.dble.backend.mysql.xa.VersionedFile)1 SystemConfig (com.actiontech.dble.config.model.SystemConfig)1