public class LaunchedWorkflowCompositeService extends WorkflowCompositeService implements RunService
| Constructor and Description |
|---|
LaunchedWorkflowCompositeService(String name) |
LaunchedWorkflowCompositeService(String name,
org.apache.hadoop.service.Service... children) |
| Modifier and Type | Method and Description |
|---|---|
void |
addService(org.apache.hadoop.service.Service service)
Add a service, and register it
|
org.apache.hadoop.conf.Configuration |
bindArgs(org.apache.hadoop.conf.Configuration config,
String... args)
Pre-init argument binding
|
protected boolean |
deployChildService(org.apache.hadoop.service.Service service)
Run a child service -initing and starting it if this
service has already passed those parts of its own lifecycle
|
protected String[] |
getArgv() |
protected static boolean |
isSet(String s) |
protected static boolean |
isUnset(String s)
Implementation of set-ness, groovy definition of true/false for a string
|
int |
runService()
Run a service.
|
stateChangedaddIfService, getServices, removeService, serviceInit, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStopgetServicespublic LaunchedWorkflowCompositeService(String name)
public LaunchedWorkflowCompositeService(String name, org.apache.hadoop.service.Service... children)
protected static boolean isUnset(String s)
s - protected static boolean isSet(String s)
protected String[] getArgv()
public org.apache.hadoop.conf.Configuration bindArgs(org.apache.hadoop.conf.Configuration config,
String... args)
throws Exception
bindArgs in interface RunServiceconfig - 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.Exceptionpublic int runService()
throws Throwable
RunServiceService.start()runService in interface RunServiceThrowable - any exception to reportpublic void addService(org.apache.hadoop.service.Service service)
WorkflowCompositeServiceaddService in interface ServiceParentaddService in class WorkflowCompositeServiceservice - the Service to be added.
Important: do not add a service to a parent during your own serviceInit/start,
in Hadoop 2.2; you will trigger a ConcurrentModificationException.protected boolean deployChildService(org.apache.hadoop.service.Service service)
service - the service to startCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.