public final class TestDriverLauncher extends Object
Modifier and Type | Method and Description |
---|---|
void |
close() |
static TestDriverLauncher |
getLauncher(Configuration runtimeConfiguration)
Instantiate a launcher for the given Configuration.
|
LauncherStatus |
run(Configuration driverConfig)
Run a job.
|
LauncherStatus |
run(Configuration driverConfig,
long timeOut)
Run a job with a waiting timeout after which it will be killed, if it did not complete yet.
|
String |
toString() |
public static TestDriverLauncher getLauncher(Configuration runtimeConfiguration) throws BindException, InjectionException
runtimeConfiguration
- the resourcemanager configuration to be usedBindException
- on configuration errorsInjectionException
- on configuration errorspublic void close()
public LauncherStatus run(Configuration driverConfig)
driverConfig
- the configuration for the driver. See DriverConfiguration for details.public LauncherStatus run(Configuration driverConfig, long timeOut)
driverConfig
- the configuration for the driver. See DriverConfiguration for details.timeOut
- timeout on the job.Copyright © 2017 The Apache Software Foundation. All rights reserved.