public class BootstrapActions.ConfigureDaemons
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.lang.String> |
args |
(package private) boolean |
replace |
Modifier | Constructor and Description |
---|---|
private |
ConfigureDaemons() |
Modifier and Type | Method and Description |
---|---|
BootstrapActionConfig |
build()
Returns an object which can be used in a RunJobflow call.
|
BootstrapActions.ConfigureDaemons |
withHeapSize(BootstrapActions.Daemon daemon,
int megabytes)
Set the heap size of a daemon.
|
BootstrapActions.ConfigureDaemons |
withOpts(BootstrapActions.Daemon daemon,
java.lang.String opts)
Specify additional Java opts to be included when the daemon starts.
|
BootstrapActions.ConfigureDaemons |
withReplace(boolean replace)
Replace the existing hadoop-user-env.sh file if it exists.
|
public BootstrapActions.ConfigureDaemons withHeapSize(BootstrapActions.Daemon daemon, int megabytes)
daemon
- The deamon to configure.megabytes
- The requested heap size of the daemon.public BootstrapActions.ConfigureDaemons withOpts(BootstrapActions.Daemon daemon, java.lang.String opts)
daemon
- The daemon to add opts to.opts
- Additional Java command line arguments.public BootstrapActions.ConfigureDaemons withReplace(boolean replace)
replace
- whether the file should be replaced.public BootstrapActionConfig build()