public class BaseCommandEmitter extends Object implements CommandEmitter
public boolean matches(Version version)
matches 在接口中 CommandEmitterpublic List<String> emit(MysqldConfig config, de.flapdoodle.embed.process.extract.IExtractedFileSet exe) throws IOException
emit 在接口中 CommandEmitterIOExceptionprivate String sockFile() throws IOException
AbstractProcess and instance of
MysqldProcess is not yet present, so vars are not initialized.
This algo gives stable sock classPathFile based on single executeCommands profile, but can leave trash sock classPathFiles in tmp dir.
Notes: .sock classPathFile needs to be in system temp dir and not in ex. target/... This is due to possible problems with existing mysql installation and apparmor profiles in linuxes.
IOExceptionCopyright © 2020. All rights reserved.