public class RoleLaunchService extends WorkflowExecutorService<ExecutorService>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static String |
ROLE_LAUNCH_SERVICE |
| Constructor and Description |
|---|
RoleLaunchService(QueueAccess queueAccess,
ProviderService provider,
SliderFileSystem fs,
org.apache.hadoop.fs.Path generatedConfDirPath,
Map<String,String> envVars,
org.apache.hadoop.fs.Path launcherTmpDirPath)
Construct an instance of the launcher
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
launchRole(ContainerAssignment assignment,
AggregateConf clusterSpec)
Start an asychronous launch operation
|
execute, getExecutor, serviceStop, setExecutor, stopExecutor, submitclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected static final org.slf4j.Logger log
public static final String ROLE_LAUNCH_SERVICE
public RoleLaunchService(QueueAccess queueAccess, ProviderService provider, SliderFileSystem fs, org.apache.hadoop.fs.Path generatedConfDirPath, Map<String,String> envVars, org.apache.hadoop.fs.Path launcherTmpDirPath)
startOperation - the callback to start the opreationactionQueue - provider - the providerfs - filesystemgeneratedConfDirPath - path in the FS for the generated direnvVars - environment variableslauncherTmpDirPath - path for a temporary data in the launch processpublic void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.service.Serviceinit in class org.apache.hadoop.service.AbstractServicepublic void launchRole(ContainerAssignment assignment, AggregateConf clusterSpec)
container - container targetrole - roleclusterSpec - cluster spec to use for templateCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.