com.bigdata.jini.start
Class ServiceStarter
java.lang.Object
com.bigdata.jini.start.ServiceStarter
public class ServiceStarter
- extends Object
Starts an unmanaged service using the specified configuration.
The service is executed in a child process using
ServiceConfiguration.newServiceStarter(IServiceListener). That child
process will have the environment and command line as described for the
service in the Configuration resource.
- Version:
- $Id$
- Author:
- Bryan Thompson
|
Method Summary |
static void |
main(String[] args)
Executes the named service configuration. |
protected static void |
usage()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceStarter
public ServiceStarter()
main
public static void main(String[] args)
throws Exception
- Executes the named service configuration. The configuration file and any
overrides will be passed onto the child process. For example:
java com.bigdata.start.ServiceStarter -Djava.security.policy=policy.all com.bigdata.jini.start.ServicesManagerServer src/resources/config/bigdata.config
would execute the ServicesManagerServer, bootstrapping its own
execution environment from the same configuration file that it will use
itself.
Similar commands can be used to start application specific jini clients
serving as masters for distributed jobs.
- Parameters:
args - Options followed by the name of the service configuration to
execute followed by the the jini Configuration file
(or URL), and then by optional overrides.
The defined options are:
- -n
- Write the command that would be executed on stdout, but
do not execute the command. This is useful both if you want to
run the command directly and if you want to validate the
Configuration.
- Throws:
Exception- TODO:
- it would be nice if we could start any subclass
JavaServiceConfiguration in this manner. The problem is
that there is no declarative link between the class name of the
server and the class name of the ServiceConfiguration. We
would need to be able to figure out the
ServiceConfiguration class from the server class name,
instantiate the specific ServiceConfiguration class, and
then use it to start the service.
usage
protected static void usage()
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.