MysqldResource(File baseDir, PrintStream out, PrintStream err,
FileUtil fileUtil, Shell.Factory shellFactory, Streams streams,
Threads threads, Str str, ClassUtil classUtil) {
this.out = out;
this.err = err;
this.fileUtil = fileUtil;
this.shellFactory = shellFactory;
this.streams = streams;
this.threads = threads;
this.str = str;
this.classUtil = classUtil;
this.optionParser = new HelpOptionsParser(err, threads, classUtil, str);
this.versionString = MysqldResourceI.DEFAULT_VERSION;
this.killDelay = 30000;
if (baseDir.equals(fileUtil.nullFile())) {
this.baseDir = new File(fileUtil.tmp(), "mysql-c.mxj");
} else {
this.baseDir = baseDir;
}
this.pidFile = null;
this.msgPrefix = "[" + classUtil.shortName(getClass()) + "] ";
this.options = new HashMap();
this.setShell(null);
setOsAndArch(System.getProperty(Platform.OS_NAME), System
.getProperty(Platform.OS_ARCH));
this.trace = new Exception();
this.completionListensers = new ArrayList();
}