
Classes | |
| class | DeploymentTreeControllerImpl |
| class | MyProjectRunModel |
| class | StartupOptions |
Public Member Functions | |
| void | prepare (StartupOptions startupOptions) |
| void | go () |
| void | stop () |
| void | exit (final int code) |
| String | version () |
| URL | findResource (String name) |
| URL | findResource (String name, String where) |
| HelpSet | getHelpSet () |
| void | installExtraTools (URL url) throws Exception |
| void | removeExtraTools () |
| void | loadBuiltinTools (URL url) throws Exception |
| AcsCommandCenterProject | createProject () |
| void | loadProject (File f) |
| AcsCommandCenterProject | readProject (File f) throws FileNotFoundException, MarshalException, ValidationException, IOException |
| void | writeProject (AcsCommandCenterProject p, File f) throws IOException, MarshalException, ValidationException |
| void | moreContainers () |
| void | lessContainers () |
| ContainerT | removeContainer (int index) |
| void | insertContainer (ContainerT cont, int index) |
| Map< String, Object >[] | giveVariableMapsForGui () |
| void | handleUnresolvableVariable (String name) |
| List< String > | giveProjectVariableNames () |
| void | runBackground (Runnable r) |
Public Attributes | |
| AcsCommandCenterProject | project |
| MyProjectRunModel | model |
| StartupOptions | startupOptions |
| ExecuteServices | executeServices |
| ExecuteManager | executeManager |
| ExecuteContainer | executeContainer |
| ExecuteAcs | executeAcs |
| ExecuteTools | executeTools |
| Firestarter | firestarter |
| URL | latestBuiltinToolsUrl |
| URL | currentExtraToolsUrl |
| DeploymentTreeControllerImpl | deploymentTreeControllerImpl |
Protected Member Functions | |
| void | installExtraTools (InputStream f) throws Exception |
| void | loadBuiltinTools (InputStream f) throws Exception |
Protected Attributes | |
| CommandCenterGui | gui |
| ProjectMaker | projectMaker |
| Logger | log |
| String | version = null |
| final String | HELPSET_NAME = "AcsCommandCenter.hs" |
| HelpSet | helpSet |
Private Member Functions | |
| void | scanForVariables (Object[] xx, List< String > l) |
| void | scanForVariables (Object x, List< String > l) |
| void | scanForVariables (String s, int i, List< String > l) |
Private Attributes | |
| List< String > | variablesDiscoveredOnTheFly = new LinkedList<String>() |
| ExecutorService | bgThreads |
The business logic for Command Center.
| AcsCommandCenterProject alma::acs::commandcenter::app::CommandCenterLogic::createProject | ( | ) | [inline] |
| void alma::acs::commandcenter::app::CommandCenterLogic::exit | ( | final int | code | ) | [inline] |
System.exit() can be prevented by setting the boolean flag to false through the corresponding command line switch.
References alma::acs::commandcenter::app::CommandCenterLogic::StartupOptions::doExitOnClose, log, and startupOptions.
| URL alma::acs::commandcenter::app::CommandCenterLogic::findResource | ( | String | name, | |
| String | where | |||
| ) | [inline] |
Finds a resource in the specified location.
References log.
| URL alma::acs::commandcenter::app::CommandCenterLogic::findResource | ( | String | name | ) | [inline] |
Finds a resource in the resource folder.
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::Icons::getConfigIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getDownIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getErrIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getMinusIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getOkIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getPlusIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getStartIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getStopIcon(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getStopIconRed(), alma::acs::commandcenter::gui::CommandCenterGui::Icons::getUpIcon(), prepare(), and alma::acs::commandcenter::gui::CommandCenterGui::prepare().
| HelpSet alma::acs::commandcenter::app::CommandCenterLogic::getHelpSet | ( | ) | [inline] |
References helpSet.
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::showHelpBrowser().
| List<String> alma::acs::commandcenter::app::CommandCenterLogic::giveProjectVariableNames | ( | ) | [inline] |
For later use by whoever, could currently as well be "protected"
References project, scanForVariables(), and variablesDiscoveredOnTheFly.
Referenced by giveVariableMapsForGui().
| Map<String, Object> [] alma::acs::commandcenter::app::CommandCenterLogic::giveVariableMapsForGui | ( | ) | [inline] |
| void alma::acs::commandcenter::app::CommandCenterLogic::go | ( | ) | [inline] |
| void alma::acs::commandcenter::app::CommandCenterLogic::handleUnresolvableVariable | ( | String | name | ) | [inline] |
References gui, alma::acs::commandcenter::gui::CommandCenterGui::showUnresolvableVariableErrorDialog(), and variablesDiscoveredOnTheFly.
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::BackgroundAction::actionPerformed(), and alma::acs::commandcenter::gui::CommandCenterGui::addExtraTool().
| void alma::acs::commandcenter::app::CommandCenterLogic::insertContainer | ( | ContainerT | cont, | |
| int | index | |||
| ) | [inline] |
Inserts a container into the project at the given index, that is, the container will afterwards have the index index.
References project.
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionMoveContainerDown::actionPerformed(), and alma::acs::commandcenter::gui::TabPanel::ActionMoveContainerUp::actionPerformed().
| void alma::acs::commandcenter::app::CommandCenterLogic::installExtraTools | ( | InputStream | f | ) | throws Exception [inline, protected] |
internal method
References alma::acs::commandcenter::gui::CommandCenterGui::addExtraTool(), alma::acs::commandcenter::engine::ExecuteTools::addTool(), executeTools, and gui.
| void alma::acs::commandcenter::app::CommandCenterLogic::installExtraTools | ( | URL | url | ) | throws Exception [inline] |
API method
References currentExtraToolsUrl.
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::ActionInstallExtraTools::actionPerformed(), and prepare().
| void alma::acs::commandcenter::app::CommandCenterLogic::lessContainers | ( | ) | [inline] |
References project.
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionLessContainers::actionPerformed().
| void alma::acs::commandcenter::app::CommandCenterLogic::loadBuiltinTools | ( | InputStream | f | ) | throws Exception [inline, protected] |
internal method
| void alma::acs::commandcenter::app::CommandCenterLogic::loadBuiltinTools | ( | URL | url | ) | throws Exception [inline] |
API method
References latestBuiltinToolsUrl.
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::ActionLoadBuiltinTools::actionPerformed(), and prepare().
| void alma::acs::commandcenter::app::CommandCenterLogic::loadProject | ( | File | f | ) | [inline] |
References alma::acs::commandcenter::gui::CommandCenterGui::currentProjectChanged(), gui, alma::acs::commandcenter::app::ProjectMaker::loadProject(), log, model, project, projectMaker, alma::acs::commandcenter::gui::CommandCenterGui::setCurrentProjectFile(), and alma::acs::commandcenter::app::ProjectRunModel::setProject().
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::ActionOpenProject::actionPerformed(), and alma::acs::commandcenter::CommandCenter::main().
| void alma::acs::commandcenter::app::CommandCenterLogic::moreContainers | ( | ) | [inline] |
| void alma::acs::commandcenter::app::CommandCenterLogic::prepare | ( | StartupOptions | startupOptions | ) | [inline] |
References alma::acs::commandcenter::app::ProjectMaker::createProject(), deploymentTreeControllerImpl, executeAcs, executeContainer, executeManager, executeServices, executeTools, exit(), findResource(), firestarter, gui, helpSet, HELPSET_NAME, installExtraTools(), loadBuiltinTools(), log, model, alma::acs::commandcenter::gui::CommandCenterGui::prepare(), project, projectMaker, and version().
Referenced by alma::acs::commandcenter::CommandCenter::main().
| AcsCommandCenterProject alma::acs::commandcenter::app::CommandCenterLogic::readProject | ( | File | f | ) | throws FileNotFoundException, MarshalException, ValidationException, IOException [inline] |
| ContainerT alma::acs::commandcenter::app::CommandCenterLogic::removeContainer | ( | int | index | ) | [inline] |
Removes a container from the project.
References project.
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionMoveContainerDown::actionPerformed(), and alma::acs::commandcenter::gui::TabPanel::ActionMoveContainerUp::actionPerformed().
| void alma::acs::commandcenter::app::CommandCenterLogic::removeExtraTools | ( | ) | [inline] |
| void alma::acs::commandcenter::app::CommandCenterLogic::runBackground | ( | Runnable | r | ) | [inline] |
| void alma::acs::commandcenter::app::CommandCenterLogic::scanForVariables | ( | String | s, | |
| int | i, | |||
| List< String > | l | |||
| ) | [inline, private] |
References scanForVariables().
| void alma::acs::commandcenter::app::CommandCenterLogic::scanForVariables | ( | Object | x, | |
| List< String > | l | |||
| ) | [inline, private] |
References scanForVariables().
| void alma::acs::commandcenter::app::CommandCenterLogic::scanForVariables | ( | Object[] | xx, | |
| List< String > | l | |||
| ) | [inline, private] |
Referenced by giveProjectVariableNames(), and scanForVariables().
| void alma::acs::commandcenter::app::CommandCenterLogic::stop | ( | ) | [inline] |
References bgThreads, deploymentTreeControllerImpl, exit(), firestarter, gui, alma::acs::commandcenter::meta::Firestarter::shutdown(), alma::acs::commandcenter::gui::CommandCenterGui::stop(), and alma::acs::commandcenter::app::CommandCenterLogic::DeploymentTreeControllerImpl::stop().
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::ActionExit::actionPerformed(), and alma::acs::commandcenter::gui::CommandCenterGui::prepare().
| String alma::acs::commandcenter::app::CommandCenterLogic::version | ( | ) | [inline] |
Returns the first non-empty line of file "src/VERSION", or the empty string in any erroneous case.
Referenced by prepare().
| void alma::acs::commandcenter::app::CommandCenterLogic::writeProject | ( | AcsCommandCenterProject | p, | |
| File | f | |||
| ) | throws IOException, MarshalException, ValidationException [inline] |
References projectMaker, and alma::acs::commandcenter::app::ProjectMaker::writeProject().
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::ActionSaveAsProject::actionPerformed(), alma::acs::commandcenter::gui::CommandCenterGui::ActionSaveProject::actionPerformed(), and alma::acs::commandcenter::app::CommandCenterLogicTest::test_Write_Project().
ExecutorService alma::acs::commandcenter::app::CommandCenterLogic::bgThreads [private] |
Executors.newCachedThreadPool(new ThreadFactory(){ ThreadFactory def = Executors.defaultThreadFactory(); public Thread newThread (Runnable r) { Thread ret = def.newThread(r); ret.setDaemon(true); return ret; } })
Factory for unlimited number of daemons threads
Referenced by alma::acs::commandcenter::app::CommandCenterLogic::DeploymentTreeControllerImpl::getBackgroundExecutor(), runBackground(), and stop().
| DeploymentTreeControllerImpl alma::acs::commandcenter::app::CommandCenterLogic::deploymentTreeControllerImpl |
Referenced by prepare(), alma::acs::commandcenter::gui::CommandCenterGui::prepare(), and stop().
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionKillAcs::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStopAcs::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartAcs::actionPerformed(), alma::acs::commandcenter::gui::EditCommandsPanel::EditCommandsPanel(), and prepare().
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionStopManager::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartManager::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStopAcs::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartAcs::actionPerformed(), alma::acs::commandcenter::gui::EditCommandsPanel::EditCommandsPanel(), and prepare().
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionStopServices::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartServices::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStopAcs::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartAcs::actionPerformed(), alma::acs::commandcenter::gui::EditCommandsPanel::EditCommandsPanel(), and prepare().
Referenced by go(), handleUnresolvableVariable(), installExtraTools(), loadProject(), prepare(), removeExtraTools(), and stop().
HelpSet alma::acs::commandcenter::app::CommandCenterLogic::helpSet [protected] |
Referenced by getHelpSet(), and prepare().
final String alma::acs::commandcenter::app::CommandCenterLogic::HELPSET_NAME = "AcsCommandCenter.hs" [protected] |
Referenced by prepare().
Logger alma::acs::commandcenter::app::CommandCenterLogic::log [protected] |
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionStopContainer::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartContainer::actionPerformed(), giveVariableMapsForGui(), loadProject(), alma::acs::commandcenter::gui::CommandCenterGui::managerStarted(), alma::acs::commandcenter::gui::CommandCenterGui::managerStopped(), prepare(), alma::acs::commandcenter::gui::CommandCenterGui::writeModelToManagerLocationForContainers(), and alma::acs::commandcenter::gui::CommandCenterGui::writeModelToManagerLocationForTools().
| AcsCommandCenterProject alma::acs::commandcenter::app::CommandCenterLogic::project |
Referenced by alma::acs::commandcenter::gui::TabPanel::ActionMoveContainerDown::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionMoveContainerUp::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStopAllContainers::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartAllContainers::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStopContainer::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::ActionStartContainer::actionPerformed(), alma::acs::commandcenter::gui::CommandCenterGui::ActionSaveAsProject::actionPerformed(), alma::acs::commandcenter::gui::CommandCenterGui::ActionSaveProject::actionPerformed(), alma::acs::commandcenter::gui::CommandCenterGui::ActionNewProject::actionPerformed(), alma::acs::commandcenter::gui::TabPanel::getMode(), giveProjectVariableNames(), insertContainer(), lessContainers(), loadProject(), moreContainers(), prepare(), removeContainer(), alma::acs::commandcenter::gui::CommandCenterGui::showContainerSettingsDialog(), alma::acs::commandcenter::gui::CommandCenterGui::writeFrontPanelToModel(), alma::acs::commandcenter::gui::CommandCenterGui::writeManagerLocationForContainersToModel(), alma::acs::commandcenter::gui::CommandCenterGui::writeManagerLocationForToolsToModel(), alma::acs::commandcenter::gui::CommandCenterGui::writeModelToContainerSettingsDialog(), alma::acs::commandcenter::gui::CommandCenterGui::writeModelToFrontPanel(), alma::acs::commandcenter::gui::CommandCenterGui::writeModelToManagerLocationForContainers(), and alma::acs::commandcenter::gui::CommandCenterGui::writeModelToManagerLocationForTools().
Referenced by exit(), go(), and alma::acs::commandcenter::gui::CommandCenterGui::go().
List<String> alma::acs::commandcenter::app::CommandCenterLogic::variablesDiscoveredOnTheFly = new LinkedList<String>() [private] |
Referenced by giveProjectVariableNames(), and handleUnresolvableVariable().
String alma::acs::commandcenter::app::CommandCenterLogic::version = null [protected] |
assigned in version()
Referenced by alma::acs::commandcenter::gui::CommandCenterGui::prepare().
1.6.2