Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COMMAND_LOG_FILE |
static String |
DEFAULT_COMMAND_NAME |
static String |
DEFAULT_LOG_EXTENSION |
static String |
DEFAULT_SCRIPT_LOG_FILE |
static String |
DEFAULT_SCRIPT_NAME |
Constructor and Description |
---|
Job() |
Modifier and Type | Method and Description |
---|---|
Pair<String,String> |
createLaunchScript() |
String |
getCommand() |
long |
getJobNumber() |
abstract JobState |
getJobState() |
Optional<List<String>> |
getLastLogLines() |
String |
getLogFilename() |
String |
getRunDir() |
boolean |
isFinished() |
abstract boolean |
jobWasSuccessful() |
abstract void |
killJob() |
abstract long |
launchJob() |
void |
setCommand(String command) |
void |
setJobNumber(long jobNumber) |
void |
setRapidWrightCommand(Class<?> mainClass,
int memoryLimitMB,
boolean enableAssertions,
String arguments)
Set the command to run a RapidWright main class
|
void |
setRunDir(String runDir) |
String |
toString() |
public static final String DEFAULT_SCRIPT_NAME
public static final String DEFAULT_COMMAND_NAME
public static final String DEFAULT_LOG_EXTENSION
public static final String DEFAULT_SCRIPT_LOG_FILE
public static final String DEFAULT_COMMAND_LOG_FILE
public abstract long launchJob()
public abstract JobState getJobState()
public final boolean isFinished()
public abstract boolean jobWasSuccessful()
public abstract void killJob()
public Pair<String,String> createLaunchScript()
public String getCommand()
public void setCommand(String command)
command
- the command to setpublic void setRapidWrightCommand(Class<?> mainClass, int memoryLimitMB, boolean enableAssertions, String arguments)
mainClass
- the main class to usememoryLimitMB
- maximum memory in MBarguments
- command arguments as single stringpublic long getJobNumber()
public void setJobNumber(long jobNumber)
jobNumber
- the jobNumber to setpublic String getRunDir()
public void setRunDir(String runDir)
runDir
- the runDir to setpublic String toString()
toString
in class Object
public Optional<List<String>> getLastLogLines()
public String getLogFilename()