use of alma.acs.commandcenter.engine.ExecuteAcs in project ACS by ACS-Community.
the class CommandCenterLogic method prepare.
//
// ============ Startup / Shutdown ====================
//
public void prepare(StartupOptions startupOptions) {
this.startupOptions = startupOptions;
log = MiscUtils.getPackageLogger(this);
// Make up the creator string for command center projects.
projectCreatorId = (version().equals("")) ? null : "acc-" + version();
projectMaker = new ProjectMaker(projectCreatorId);
project = projectMaker.createProject();
model = new MyProjectRunModel(project);
executeServices = new ExecuteServices(model);
executeManager = new ExecuteManager(model);
executeContainer = new ExecuteContainer();
executeAcs = new ExecuteAcs(model);
executeTools = new ExecuteTools(model);
firestarter = new Firestarter("AcsCommandCenter", log, null);
// msc (2007-11): needed for talking to daemons
Executor.remoteDaemonEnable(firestarter);
deploymentTreeControllerImpl = new DeploymentTreeControllerImpl();
gui = new CommandCenterGui(this);
gui.prepare();
// --- read the built-in tools
try {
URL url = findResource(ToolManager.getDefaultBuiltinToolsName(), "");
loadBuiltinTools(url);
} catch (Exception exc) {
log.severe("*** FATAL: Could not read definition of built-in tools." + " Printing stacktrace to stderr and exiting. ***");
exc.printStackTrace(System.err);
exit(4);
}
// --- read the extra tools
try {
URL url = findResource(ToolManager.getDefaultExtraToolsName(), "");
installExtraTools(url);
} catch (Exception exc) {
log.info("Failed to read " + ToolManager.getDefaultExtraToolsName() + "; reason was: " + exc);
}
try {
ClassLoader cl = null;
URL url = findResource(HELPSET_NAME, "");
this.helpSet = new HelpSet(cl, url);
} catch (HelpSetException ex) {
log.info("couldn't read helpset, no help available");
}
}
Aggregations