Class BootstrapActions.ConfigureDaemons
java.lang.Object
com.amazonaws.services.elasticmapreduce.util.BootstrapActions.ConfigureDaemons
- Enclosing class:
- BootstrapActions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns an object which can be used in a RunJobflow call.withHeapSize
(BootstrapActions.Daemon daemon, int megabytes) Set the heap size of a daemon.withOpts
(BootstrapActions.Daemon daemon, String opts) Specify additional Java opts to be included when the daemon starts.withReplace
(boolean replace) Replace the existing hadoop-user-env.sh file if it exists.
-
Method Details
-
withHeapSize
public BootstrapActions.ConfigureDaemons withHeapSize(BootstrapActions.Daemon daemon, int megabytes) Set the heap size of a daemon.- Parameters:
daemon
- The deamon to configure.megabytes
- The requested heap size of the daemon.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
withOpts
Specify additional Java opts to be included when the daemon starts.- Parameters:
daemon
- The daemon to add opts to.opts
- Additional Java command line arguments.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
withReplace
Replace the existing hadoop-user-env.sh file if it exists.- Parameters:
replace
- whether the file should be replaced.- Returns:
- A reference to this updated object so that method calls can be chained together.
-
build
Returns an object which can be used in a RunJobflow call.- Returns:
- an object which can be used in a RunJobflow call.
-