Package helma.main
Class ApplicationManager
java.lang.Object
helma.main.ApplicationManager
- All Implemented Interfaces:
org.apache.xmlrpc.XmlRpcHandler
This class is responsible for starting and stopping Helma applications.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationManager
(ResourceProperties props, Server server) Creates a new ApplicationManager object. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Called regularely check applications property file to create and start new applications.Implements org.apache.xmlrpc.XmlRpcHandler.execute()getApplication
(String name) Get an application by name.Object[]
Get an array containing all currently running applications.void
Bind an application by namevoid
Start an application by namevoid
startAll()
Start all applications listed in the propertiesvoid
Stop an application by namevoid
stopAll()
Stop all running applications.
-
Constructor Details
-
ApplicationManager
Creates a new ApplicationManager object.- Parameters:
props
- the properties defining the running appsserver
- the server instance
-
-
Method Details
-
checkForChanges
protected void checkForChanges()Called regularely check applications property file to create and start new applications. -
start
Start an application by name -
register
Bind an application by name -
stop
Stop an application by name -
startAll
public void startAll()Start all applications listed in the properties -
stopAll
public void stopAll()Stop all running applications. -
getApplications
Get an array containing all currently running applications. -
getApplication
Get an application by name. -
execute
Implements org.apache.xmlrpc.XmlRpcHandler.execute()- Specified by:
execute
in interfaceorg.apache.xmlrpc.XmlRpcHandler
- Throws:
Exception
-