|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ocd.shell.ServiceStarter
The ServiceStarter is an application that is designed to start a set of Services. The Shell will create a new ServiceStarter instance of the boot process and the startup process passing a URL to the construct that points the the application to start.
Often the boot.jnlp file and startup.jnlp will specify that the ServiceStarter application should be used. In this case the first argument passed to the ServiceStarter application's main method by the JNLP files should be a reference to a properties file that will list the names of Services to start.
The Properties file should have the following format:
# List of Services to be started up services = SampleService1, SampleService2 #SampleService1 SampleService1.class = org.group.SampleService1Main SampleService1.args = arg1 arg2 arg3 #SampleService2 SampleService2.class = org.group.SampleService2Main SampleService2.args = arg1 arg2 arg3Each Service application listed in the Properties file will be started in sequence. The next Service in line will not be started untile the main method of the previous Service has completed.
Any classes or resources that are required to start load a Service should be included in the boot or startup jnlp file that was used to start the Service Starter.
Constructor Summary | |
ServiceStarter(java.net.URL pURL,
Shell shell)
Creates new ServiceStarter. |
Method Summary | |
static void |
main(java.lang.String[] args)
The Main method of the Application |
void |
start()
Start the ServiceStarter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceStarter(java.net.URL pURL, Shell shell) throws ParseException, java.io.IOException
pURL
- is the url of the JNLP File that should be used to process ServicesMethod Detail |
public void start()
public static void main(java.lang.String[] args)
pArgs
- contains the names of the services to start
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |