Search in sources :

Example 1 with ExecuteServices

use of alma.acs.commandcenter.engine.ExecuteServices 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");
    }
}
Also used : HelpSet(javax.help.HelpSet) ExecuteServices(alma.acs.commandcenter.engine.ExecuteServices) ExecuteTools(alma.acs.commandcenter.engine.ExecuteTools) ExecuteAcs(alma.acs.commandcenter.engine.ExecuteAcs) CommandCenterGui(alma.acs.commandcenter.gui.CommandCenterGui) URL(java.net.URL) ValidationException(org.exolab.castor.xml.ValidationException) HelpSetException(javax.help.HelpSetException) MarshalException(org.exolab.castor.xml.MarshalException) IOException(java.io.IOException) FileNotFoundException(java.io.FileNotFoundException) OrbInitException(alma.acs.commandcenter.meta.Firestarter.OrbInitException) ExecuteContainer(alma.acs.commandcenter.engine.ExecuteContainer) HelpSetException(javax.help.HelpSetException) Firestarter(alma.acs.commandcenter.meta.Firestarter) ExecuteManager(alma.acs.commandcenter.engine.ExecuteManager)

Example 2 with ExecuteServices

use of alma.acs.commandcenter.engine.ExecuteServices in project ACS by ACS-Community.

the class AcsStartLight method cdb.

protected void cdb() {
    executeServices = new ExecuteServices(this);
    executeServices.startLocalJava(this);
}
Also used : ExecuteServices(alma.acs.commandcenter.engine.ExecuteServices)

Aggregations

ExecuteServices (alma.acs.commandcenter.engine.ExecuteServices)2 ExecuteAcs (alma.acs.commandcenter.engine.ExecuteAcs)1 ExecuteContainer (alma.acs.commandcenter.engine.ExecuteContainer)1 ExecuteManager (alma.acs.commandcenter.engine.ExecuteManager)1 ExecuteTools (alma.acs.commandcenter.engine.ExecuteTools)1 CommandCenterGui (alma.acs.commandcenter.gui.CommandCenterGui)1 Firestarter (alma.acs.commandcenter.meta.Firestarter)1 OrbInitException (alma.acs.commandcenter.meta.Firestarter.OrbInitException)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 URL (java.net.URL)1 HelpSet (javax.help.HelpSet)1 HelpSetException (javax.help.HelpSetException)1 MarshalException (org.exolab.castor.xml.MarshalException)1 ValidationException (org.exolab.castor.xml.ValidationException)1