@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HadoopStepConfig extends Object implements Serializable, Cloneable, StructuredPojo
A cluster step consisting of a JAR file whose main function will be executed. The main function submits a job for Hadoop to execute and waits for the job to finish or fail.
Constructor and Description |
---|
HadoopStepConfig() |
Modifier and Type | Method and Description |
---|---|
HadoopStepConfig |
addPropertiesEntry(String key,
String value) |
HadoopStepConfig |
clearPropertiesEntries()
Removes all the entries added into Properties.
|
HadoopStepConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getArgs()
The list of command line arguments to pass to the JAR file's main function for execution.
|
String |
getJar()
The path to the JAR file that runs during the step.
|
String |
getMainClass()
The name of the main class in the specified Java file.
|
Map<String,String> |
getProperties()
The list of Java properties that are set when the step runs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArgs(Collection<String> args)
The list of command line arguments to pass to the JAR file's main function for execution.
|
void |
setJar(String jar)
The path to the JAR file that runs during the step.
|
void |
setMainClass(String mainClass)
The name of the main class in the specified Java file.
|
void |
setProperties(Map<String,String> properties)
The list of Java properties that are set when the step runs.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
HadoopStepConfig |
withArgs(Collection<String> args)
The list of command line arguments to pass to the JAR file's main function for execution.
|
HadoopStepConfig |
withArgs(String... args)
The list of command line arguments to pass to the JAR file's main function for execution.
|
HadoopStepConfig |
withJar(String jar)
The path to the JAR file that runs during the step.
|
HadoopStepConfig |
withMainClass(String mainClass)
The name of the main class in the specified Java file.
|
HadoopStepConfig |
withProperties(Map<String,String> properties)
The list of Java properties that are set when the step runs.
|
public void setJar(String jar)
The path to the JAR file that runs during the step.
jar
- The path to the JAR file that runs during the step.public String getJar()
The path to the JAR file that runs during the step.
public HadoopStepConfig withJar(String jar)
The path to the JAR file that runs during the step.
jar
- The path to the JAR file that runs during the step.public Map<String,String> getProperties()
The list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
public void setProperties(Map<String,String> properties)
The list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
properties
- The list of Java properties that are set when the step runs. You can use these properties to pass key
value pairs to your main function.public HadoopStepConfig withProperties(Map<String,String> properties)
The list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
properties
- The list of Java properties that are set when the step runs. You can use these properties to pass key
value pairs to your main function.public HadoopStepConfig addPropertiesEntry(String key, String value)
public HadoopStepConfig clearPropertiesEntries()
public void setMainClass(String mainClass)
The name of the main class in the specified Java file. If not specified, the JAR file should specify a main class in its manifest file.
mainClass
- The name of the main class in the specified Java file. If not specified, the JAR file should specify a
main class in its manifest file.public String getMainClass()
The name of the main class in the specified Java file. If not specified, the JAR file should specify a main class in its manifest file.
public HadoopStepConfig withMainClass(String mainClass)
The name of the main class in the specified Java file. If not specified, the JAR file should specify a main class in its manifest file.
mainClass
- The name of the main class in the specified Java file. If not specified, the JAR file should specify a
main class in its manifest file.public List<String> getArgs()
The list of command line arguments to pass to the JAR file's main function for execution.
public void setArgs(Collection<String> args)
The list of command line arguments to pass to the JAR file's main function for execution.
args
- The list of command line arguments to pass to the JAR file's main function for execution.public HadoopStepConfig withArgs(String... args)
The list of command line arguments to pass to the JAR file's main function for execution.
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
- The list of command line arguments to pass to the JAR file's main function for execution.public HadoopStepConfig withArgs(Collection<String> args)
The list of command line arguments to pass to the JAR file's main function for execution.
args
- The list of command line arguments to pass to the JAR file's main function for execution.public String toString()
toString
in class Object
Object.toString()
public HadoopStepConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.