public class Application
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
An application is any Amazon or third-party software that you can add to the cluster. This structure contains a list of strings that indicates the software to use with the cluster and accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action argument. For more information, see Launch a Job Flow on the MapR Distribution for Hadoop. Currently supported values are:
In Amazon EMR releases 4.0 and greater, the only accepted parameter is the application name. To pass arguments to applications, you supply a configuration for each application.
Modifier and Type | Field and Description |
---|---|
private SdkInternalMap<java.lang.String,java.lang.String> |
additionalInfo
This option is for advanced users only.
|
private SdkInternalList<java.lang.String> |
args
Arguments for Amazon EMR to pass to the application.
|
private java.lang.String |
name
The name of the application.
|
private java.lang.String |
version
The version of the application.
|
Constructor and Description |
---|
Application() |
Modifier and Type | Method and Description |
---|---|
Application |
addAdditionalInfoEntry(java.lang.String key,
java.lang.String value) |
Application |
clearAdditionalInfoEntries()
Removes all the entries added into AdditionalInfo.
|
Application |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalInfo()
This option is for advanced users only.
|
java.util.List<java.lang.String> |
getArgs()
Arguments for Amazon EMR to pass to the application.
|
java.lang.String |
getName()
The name of the application.
|
java.lang.String |
getVersion()
The version of the application.
|
int |
hashCode() |
void |
setAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
This option is for advanced users only.
|
void |
setArgs(java.util.Collection<java.lang.String> args)
Arguments for Amazon EMR to pass to the application.
|
void |
setName(java.lang.String name)
The name of the application.
|
void |
setVersion(java.lang.String version)
The version of the application.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Application |
withAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
This option is for advanced users only.
|
Application |
withArgs(java.util.Collection<java.lang.String> args)
Arguments for Amazon EMR to pass to the application.
|
Application |
withArgs(java.lang.String... args)
Arguments for Amazon EMR to pass to the application.
|
Application |
withName(java.lang.String name)
The name of the application.
|
Application |
withVersion(java.lang.String version)
The version of the application.
|
private java.lang.String name
The name of the application.
private java.lang.String version
The version of the application.
private SdkInternalList<java.lang.String> args
Arguments for Amazon EMR to pass to the application.
private SdkInternalMap<java.lang.String,java.lang.String> additionalInfo
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
public void setName(java.lang.String name)
The name of the application.
name
- The name of the application.public java.lang.String getName()
The name of the application.
public Application withName(java.lang.String name)
The name of the application.
name
- The name of the application.public void setVersion(java.lang.String version)
The version of the application.
version
- The version of the application.public java.lang.String getVersion()
The version of the application.
public Application withVersion(java.lang.String version)
The version of the application.
version
- The version of the application.public java.util.List<java.lang.String> getArgs()
Arguments for Amazon EMR to pass to the application.
public void setArgs(java.util.Collection<java.lang.String> args)
Arguments for Amazon EMR to pass to the application.
args
- Arguments for Amazon EMR to pass to the application.public Application withArgs(java.lang.String... args)
Arguments for Amazon EMR to pass to the application.
NOTE: This method appends the values to the existing list (if
any). Use setArgs(java.util.Collection)
or
withArgs(java.util.Collection)
if you want to override the
existing values.
args
- Arguments for Amazon EMR to pass to the application.public Application withArgs(java.util.Collection<java.lang.String> args)
Arguments for Amazon EMR to pass to the application.
args
- Arguments for Amazon EMR to pass to the application.public java.util.Map<java.lang.String,java.lang.String> getAdditionalInfo()
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
public void setAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
additionalInfo
- This option is for advanced users only. This is meta information
about third-party applications that third-party vendors use for
testing purposes.public Application withAdditionalInfo(java.util.Map<java.lang.String,java.lang.String> additionalInfo)
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
additionalInfo
- This option is for advanced users only. This is meta information
about third-party applications that third-party vendors use for
testing purposes.public Application addAdditionalInfoEntry(java.lang.String key, java.lang.String value)
public Application clearAdditionalInfoEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Application clone()
clone
in class java.lang.Object