Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.util
Class BootstrapActions.ConfigureDaemons

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.util.BootstrapActions.ConfigureDaemons
Enclosing class:
BootstrapActions

public class BootstrapActions.ConfigureDaemons
extends Object


Method Summary
 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, 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

public BootstrapActions.ConfigureDaemons withOpts(BootstrapActions.Daemon daemon,
                                                  String opts)
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

public BootstrapActions.ConfigureDaemons withReplace(boolean replace)
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

public BootstrapActionConfig build()
Returns an object which can be used in a RunJobflow call.

Returns:
an object which can be used in a RunJobflow call.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.