public class JavaJobDescription extends JobDescription
Modifier and Type | Field and Description |
---|---|
private List<String> |
javaArguments |
private String |
javaClassPath |
private String |
javaMain |
private List<String> |
javaOptions |
private Map<String,String> |
javaSystemProperties |
Constructor and Description |
---|
JavaJobDescription()
Create a
JavaJobDescription , which describes the java
application. |
Modifier and Type | Method and Description |
---|---|
void |
addJavaSystemProperty(String key,
String value)
Adds a system property to the current set of system properties.
|
ArrayList<String> |
getArguments()
Constructs the command line arguments from the class path, the jvm
options, the system properties, the main and the java arguments.
|
String |
getExecutable()
Returns the executable.
|
List<String> |
getJavaArguments()
Returns the arguments for the main class.
|
String |
getJavaClassPath()
Returns the java class path.
|
String |
getJavaMain()
Returns the main class of the java application.
|
List<String> |
getJavaOptions()
Returns the jvm options.
|
Map<String,String> |
getJavaSystemProperties()
Returns the java system properties.
|
void |
setArguments(String... arguments)
This method should not be used.
|
void |
setJavaArguments(String... javaArguments)
Sets the arguments of the java main class.
|
void |
setJavaClassPath(String javaClassPath)
Sets the java class path.
|
void |
setJavaMain(String main)
Sets the main class.
|
void |
setJavaOptions(String... options)
Sets the jvm options.
|
void |
setJavaSystemProperties(Map<String,String> systemProperties)
Sets the system properties.
|
addPostStagedFiles, addPostStagedFiles, addPreStagedFile, addPreStagedFile, deleteSandbox, getEnvironment, getMaxTime, getNodeCount, getPostStagedFiles, getPreStagedFiles, getProcessesPerNode, getQueueName, getStderr, getStdin, getStdout, offlineMode, setDeleteSandbox, setEnvironment, setExecutable, setMaxTime, setNodeCount, setOfflineMode, setPostStagedFiles, setPreStagedFiles, setProcessesPerNode, setQueueName, setStderr, setStdin, setStdout, setWipeSandbox, toString, wipeSandbox
public JavaJobDescription()
JavaJobDescription
, which describes the java
application.public List<String> getJavaOptions()
public void setJavaOptions(String... options)
options
- the jvm options.public Map<String,String> getJavaSystemProperties()
public void setJavaSystemProperties(Map<String,String> systemProperties)
systemProperties
- the system properties.public void addJavaSystemProperty(String key, String value)
key
- the key of the system property to be addedvalue
- the value belonging to the key of the system property to be
addedpublic String getJavaMain()
public void setJavaMain(String main)
main
- the main class.public List<String> getJavaArguments()
public void setJavaArguments(String... javaArguments)
javaArguments
- the arguments of the java main class.public void setArguments(String... arguments)
setJavaClassPath(String)
,
setJavaOptions(String[])
, setJavaSystemProperties(Map)
,
setJavaMain(String)
and setJavaArguments(String[])
should be used to construct the command line arguments.setArguments
in class JobDescription
arguments
- public ArrayList<String> getArguments()
getArguments
in class JobDescription
public String getExecutable()
getExecutable
in class JobDescription
public String getJavaClassPath()
public void setJavaClassPath(String javaClassPath)
javaClassPath
- the class path to be set.