|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.mygrid.ui.command.JobCanceller
public class JobCanceller
Description: This class is responsible to send a cancel job request to the scheduler. This can be made by getting an instance from JobCanceller and using its API or through mygrid cancejob script. At both of them a job is cancelled based on it's id.
Constructor Summary | |
---|---|
JobCanceller(UIManager manager)
|
Method Summary | |
---|---|
void |
cancelJob(int jobId)
|
boolean |
configureEnvironment()
Determines if this command needs to configure environment before being executed |
static void |
printUsage()
Print's this class command line usage. |
int |
run(java.lang.String[] params)
Main method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobCanceller(UIManager manager)
Method Detail |
---|
public int run(java.lang.String[] params)
run
in interface Command
params
- Job Idpublic static void printUsage()
public boolean configureEnvironment()
Command
configureEnvironment
in interface Command
Command.configureEnvironment()
public void cancelJob(int jobId) throws JobNotFoundException, java.rmi.RemoteException, JobCouldNotBeCancelledException
JobNotFoundException
java.rmi.RemoteException
JobCouldNotBeCancelledException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |