public final class Twister2Submitter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearAllJobs(Config config)
Clear left over resources for all checkpointed jobs that are not currently running:
The Job package for the checkpointed job stored in user home directory
Checkpointed data that are saved when jobs failed.
|
static void |
clearJob(java.lang.String jobID,
Config config) |
static Twister2JobState |
restartJob(java.lang.String jobID,
Config config)
Restart a Twister2 job
|
static void |
submitJob(Twister2Job twister2Job) |
static Twister2JobState |
submitJob(Twister2Job twister2Job,
Config config)
Submit a Twister2 job
|
static void |
terminateJob(java.lang.String jobID,
Config config)
terminate a Twister2 job
|
public static void submitJob(Twister2Job twister2Job)
public static Twister2JobState submitJob(Twister2Job twister2Job, Config config)
twister2Job
- jobpublic static Twister2JobState restartJob(java.lang.String jobID, Config config)
public static void terminateJob(java.lang.String jobID, Config config)
public static void clearJob(java.lang.String jobID, Config config)
public static void clearAllJobs(Config config)