public interface RunService
extends org.apache.hadoop.service.Service
Service.init(Configuration) operation is invoked via an
invocation of bindArgs(Configuration, String...)
After the service has been successfully started via Service.start()
the runService() method is called to execute the
service. When this method returns, the service launcher will exit, using
the return code from the method as its exit option.| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
bindArgs(org.apache.hadoop.conf.Configuration config,
String... args)
Propagate the command line arguments.
|
int |
runService()
Run a service.
|
org.apache.hadoop.conf.Configuration bindArgs(org.apache.hadoop.conf.Configuration config,
String... args)
throws Exception
Service.init(Configuration);
the configuration that is returned from this operation
is the one that is passed on to the init operation.
This permits implemenations to change the configuration before
the init operation.nconfig - the initial configuration build up by the
service launcher.args - argument list list of arguments passed to the command line
after any launcher-specific commands have been stripped.Exception - any problemCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.