Class HadoopStepConfig
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertiesEntry
(String key, String value) Removes all the entries added into Properties.clone()
boolean
getArgs()
The list of command line arguments to pass to the JAR file's main function for execution.getJar()
The path to the JAR file that runs during the step.The name of the main class in the specified Java file.The list of Java properties that are set when the step runs.int
hashCode()
void
setArgs
(Collection<String> args) The list of command line arguments to pass to the JAR file's main function for execution.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.The list of command line arguments to pass to the JAR file's main function for execution.withArgs
(Collection<String> args) The list of command line arguments to pass to the JAR file's main function for execution.The path to the JAR file that runs during the step.withMainClass
(String mainClass) The name of the main class in the specified Java file.withProperties
(Map<String, String> properties) The list of Java properties that are set when the step runs.
-
Constructor Details
-
HadoopStepConfig
public HadoopStepConfig()
-
-
Method Details
-
setJar
The path to the JAR file that runs during the step.
- Parameters:
jar
- The path to the JAR file that runs during the step.
-
getJar
The path to the JAR file that runs during the step.
- Returns:
- The path to the JAR file that runs during the step.
-
withJar
The path to the JAR file that runs during the step.
- Parameters:
jar
- The path to the JAR file that runs during the step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Returns:
- 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.
-
setProperties
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.
- Parameters:
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.
-
withProperties
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addPropertiesEntry
-
clearPropertiesEntries
Removes all the entries added into Properties. <p> Returns a reference to this object so that method calls can be chained together. -
setMainClass
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withMainClass
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getArgs
The list of command line arguments to pass to the JAR file's main function for execution.
- Returns:
- The list of command line arguments to pass to the JAR file's main function for execution.
-
setArgs
The list of command line arguments to pass to the JAR file's main function for execution.
- Parameters:
args
- The list of command line arguments to pass to the JAR file's main function for execution.
-
withArgs
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)
orwithArgs(java.util.Collection)
if you want to override the existing values.- Parameters:
args
- The list of command line arguments to pass to the JAR file's main function for execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withArgs
The list of command line arguments to pass to the JAR file's main function for execution.
- Parameters:
args
- The list of command line arguments to pass to the JAR file's main function for execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-