public class JavaJobDescription extends JobDescription
DEFAULT_MAX_RUN_TIME
Constructor and Description |
---|
JavaJobDescription() |
Modifier and Type | Method and Description |
---|---|
void |
addJavaArgument(java.lang.String javaArgument) |
void |
addJavaClasspathElement(java.lang.String element) |
void |
addJavaOption(java.lang.String option)
Adds a JVM option.
|
void |
addJavaSystemProperty(java.lang.String key,
java.lang.String value)
Adds a system property to the current set of system properties.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getArguments()
Constructs the command line arguments from the class path, the JVM options, the system properties, the main and the java
arguments.
|
java.util.List<java.lang.String> |
getArguments(char pathSeparator)
Constructs the command line arguments from the class path, the JVM options, the system properties, the main and the java
arguments.
|
java.lang.String |
getExecutable()
Returns the executable.
|
java.util.List<java.lang.String> |
getJavaArguments()
Returns the arguments for the main class.
|
java.util.List<java.lang.String> |
getJavaClasspath()
Returns the java class path.
|
java.lang.String |
getJavaMain()
Returns the main class of the java application.
|
java.util.List<java.lang.String> |
getJavaOptions()
Returns the JVM options.
|
java.util.Map<java.lang.String,java.lang.String> |
getJavaSystemProperties()
Returns the java system properties.
|
int |
hashCode() |
void |
setArguments(java.lang.String... arguments)
This method should not be used.
|
void |
setJavaArguments(java.lang.String... javaArguments)
Sets the arguments of the java main class.
|
void |
setJavaClasspath(java.lang.String... javaClasspath)
Sets the java class path.
|
void |
setJavaMain(java.lang.String main)
Sets the main class.
|
void |
setJavaOptions(java.lang.String... options)
Sets the JVM options.
|
void |
setJavaSystemProperties(java.util.Map<java.lang.String,java.lang.String> systemProperties)
Sets the system properties.
|
java.lang.String |
toString() |
addArgument, addEnvironment, addJobOption, getEnvironment, getJobOptions, getMaxTime, getNodeCount, getProcessesPerNode, getQueueName, getStderr, getStdin, getStdout, getWorkingDirectory, isInteractive, isStartSingleProcess, setEnvironment, setExecutable, setInteractive, setJobOptions, setMaxTime, setNodeCount, setProcessesPerNode, setQueueName, setStartSingleProcess, setStderr, setStdin, setStdout, setWorkingDirectory
public java.util.List<java.lang.String> getJavaOptions()
public void setJavaOptions(java.lang.String... options)
options
- the JVM options.public void addJavaOption(java.lang.String option)
option
- the JVM option.public java.util.Map<java.lang.String,java.lang.String> getJavaSystemProperties()
public void setJavaSystemProperties(java.util.Map<java.lang.String,java.lang.String> systemProperties)
systemProperties
- the system properties.public void addJavaSystemProperty(java.lang.String key, java.lang.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 java.lang.String getJavaMain()
public void setJavaMain(java.lang.String main)
main
- the main class.public java.util.List<java.lang.String> getJavaArguments()
public void setJavaArguments(java.lang.String... javaArguments)
javaArguments
- the arguments of the java main class.public void addJavaArgument(java.lang.String javaArgument)
public void setArguments(java.lang.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 java.util.List<java.lang.String> getArguments()
getArguments
in class JobDescription
public java.util.List<java.lang.String> getArguments(char pathSeparator)
pathSeparator
- the seperator to use in the classpath. Defaults to the unix path seperator ':'public java.lang.String getExecutable()
getExecutable
in class JobDescription
public java.util.List<java.lang.String> getJavaClasspath()
public void setJavaClasspath(java.lang.String... javaClasspath)
javaClasspath
- the class path to be set.public void addJavaClasspathElement(java.lang.String element)
public java.lang.String toString()
toString
in class JobDescription
public int hashCode()
hashCode
in class JobDescription
public boolean equals(java.lang.Object obj)
equals
in class JobDescription