public abstract static class ContainerLaunch.ShellScriptBuilder extends Object
| Constructor and Description |
|---|
ShellScriptBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
command(List<String> command) |
static ContainerLaunch.ShellScriptBuilder |
create() |
abstract void |
env(String key,
String value) |
protected void |
line(String... command) |
protected abstract void |
link(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
protected abstract void |
mkdir(org.apache.hadoop.fs.Path path) |
void |
symlink(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst) |
String |
toString() |
void |
write(PrintStream out) |
public static ContainerLaunch.ShellScriptBuilder create()
public abstract void command(List<String> command) throws IOException
IOExceptionpublic abstract void env(String key, String value) throws IOException
IOExceptionpublic final void symlink(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
IOExceptionpublic final void write(PrintStream out) throws IOException
IOExceptionprotected final void line(String... command)
protected abstract void link(org.apache.hadoop.fs.Path src,
org.apache.hadoop.fs.Path dst)
throws IOException
IOExceptionprotected abstract void mkdir(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionCopyright © 2016 Apache Software Foundation. All Rights Reserved.