Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::commandcenter::app::CommandCenterLogic Class Reference

Collaboration diagram for alma::acs::commandcenter::app::CommandCenterLogic:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

The business logic for Command Center.


Member Function Documentation

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.

URL alma::acs::commandcenter::app::CommandCenterLogic::findResource String  name,
String  where
[inline]
 

Finds a resource in the specified location.

URL alma::acs::commandcenter::app::CommandCenterLogic::findResource String  name  )  [inline]
 

Finds a resource in the resource folder.

HelpSet alma::acs::commandcenter::app::CommandCenterLogic::getHelpSet  )  [inline]
 

List<String> alma::acs::commandcenter::app::CommandCenterLogic::giveProjectVariableNames  )  [inline]
 

For later use by whoever, could currently as well be "protected"

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]
 

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.

void alma::acs::commandcenter::app::CommandCenterLogic::installExtraTools InputStream  f  )  throws Exception [inline, protected]
 

internal method

void alma::acs::commandcenter::app::CommandCenterLogic::installExtraTools URL  url  )  throws Exception [inline]
 

API method

void alma::acs::commandcenter::app::CommandCenterLogic::lessContainers  )  [inline]
 

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

void alma::acs::commandcenter::app::CommandCenterLogic::loadProject File  f  )  [inline]
 

void alma::acs::commandcenter::app::CommandCenterLogic::moreContainers  )  [inline]
 

void alma::acs::commandcenter::app::CommandCenterLogic::prepare StartupOptions  startupOptions  )  [inline]
 

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.

Returns:
the removed container, or null if index invalid

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]
 

void alma::acs::commandcenter::app::CommandCenterLogic::scanForVariables Object  x,
List< String >  l
[inline, private]
 

void alma::acs::commandcenter::app::CommandCenterLogic::scanForVariables Object[]  xx,
List< String >  l
[inline, private]
 

void alma::acs::commandcenter::app::CommandCenterLogic::stop  )  [inline]
 

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.

Returns:
a valid version info or ""

void alma::acs::commandcenter::app::CommandCenterLogic::writeProject AcsCommandCenterProject  p,
File  f
throws IOException, MarshalException, ValidationException [inline]
 


Member Data Documentation

ExecutorService alma::acs::commandcenter::app::CommandCenterLogic::bgThreads [private]
 

Initial value:

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

URL alma::acs::commandcenter::app::CommandCenterLogic::currentExtraToolsUrl
 

DeploymentTreeControllerImpl alma::acs::commandcenter::app::CommandCenterLogic::deploymentTreeControllerImpl
 

ExecuteAcs alma::acs::commandcenter::app::CommandCenterLogic::executeAcs
 

ExecuteContainer alma::acs::commandcenter::app::CommandCenterLogic::executeContainer
 

ExecuteManager alma::acs::commandcenter::app::CommandCenterLogic::executeManager
 

ExecuteServices alma::acs::commandcenter::app::CommandCenterLogic::executeServices
 

ExecuteTools alma::acs::commandcenter::app::CommandCenterLogic::executeTools
 

Firestarter alma::acs::commandcenter::app::CommandCenterLogic::firestarter
 

CommandCenterGui alma::acs::commandcenter::app::CommandCenterLogic::gui [protected]
 

HelpSet alma::acs::commandcenter::app::CommandCenterLogic::helpSet [protected]
 

final String alma::acs::commandcenter::app::CommandCenterLogic::HELPSET_NAME = "AcsCommandCenter.hs" [protected]
 

URL alma::acs::commandcenter::app::CommandCenterLogic::latestBuiltinToolsUrl
 

Logger alma::acs::commandcenter::app::CommandCenterLogic::log [protected]
 

MyProjectRunModel alma::acs::commandcenter::app::CommandCenterLogic::model
 

AcsCommandCenterProject alma::acs::commandcenter::app::CommandCenterLogic::project
 

ProjectMaker alma::acs::commandcenter::app::CommandCenterLogic::projectMaker [protected]
 

StartupOptions alma::acs::commandcenter::app::CommandCenterLogic::startupOptions
 

List<String> alma::acs::commandcenter::app::CommandCenterLogic::variablesDiscoveredOnTheFly = new LinkedList<String>() [private]
 

String alma::acs::commandcenter::app::CommandCenterLogic::version = null [protected]
 

assigned in version()


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:51:28 2009 for ACS Java API by doxygen 1.3.8