|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.gridface.impl.gcm.GridCommandManagerImpl
GridCommandManager accepts commands from GridFace GUIs and executes tasks for each command
| Constructor Summary | |
GridCommandManagerImpl()
|
|
GridCommandManagerImpl(File xmlFile)
|
|
| Method Summary | |
void |
addStatusListener(StatusListener listener)
Add status listener to changes in GCM's taskgraph |
boolean |
cancel(Identity id)
cancel the command with given id. |
boolean |
cancel(String idString)
Cancel the command that has the given id |
Identity |
execute(GridCommand command,
boolean inBackground)
Obtain task from command and submit |
Identity |
execute(GridCommand command,
boolean inBackground,
Enumeration idList)
Obtain task from command, add dependancies and submit |
Enumeration |
getActiveCommands()
Return a list of all commands with status as ACTIVE |
Enumeration |
getAllCommands()
Return a list of all commands submitted to GCM |
Enumeration |
getCanceledCommands()
Return a list of all commands with status as CANCELED |
Enumeration |
getCompletedCommands()
Return a list of all commands with status as COMPLETED |
CoGTop |
getDesktop()
|
Enumeration |
getFailedCommands()
Return a list of all commands with status as FAILED |
Scheduler |
getScheduler()
Return scheduler used by GCM. |
Status |
getStatus(Identity id)
get status of the given command |
Status |
getStatus(String id)
Get the status of the given command |
Enumeration |
getSubmittedCommands()
Return a list of all commands with status as SUBMITTED |
Enumeration |
getSuspendedCommands()
Return a list of all commands with status as SUSPENDED |
Enumeration |
getUnsubmittedCommands()
Return a list of all commands with status as UNSUBMITTED |
void |
removeStatusListener(StatusListener listener)
Remove status listener for GCM |
boolean |
resume(Identity id)
Resume the command that has the given id, |
void |
setDesktop(CoGTop desktop)
|
void |
setPriorities(long id,
int priority)
set priority to execute the given command |
void |
setScheduler(Scheduler scheduler)
assign a scheduler for executin jobs submitted to gcm |
void |
submit(ExecutableObject executable)
|
boolean |
suspend(Identity id)
Syspend the command that has the given id, |
void |
toXML(String fileName)
Save the state of GCM into an XML file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridCommandManagerImpl()
throws Exception
public GridCommandManagerImpl(File xmlFile)
throws Exception
| Method Detail |
public Identity execute(GridCommand command,
boolean inBackground,
Enumeration idList)
throws Exception
execute in interface GridCommandManagerException
public Identity execute(GridCommand command,
boolean inBackground)
throws Exception
execute in interface GridCommandManagerException
public void submit(ExecutableObject executable)
throws Exception
Exceptionpublic Status getStatus(String id)
GridCommandManager
getStatus in interface GridCommandManagerpublic Status getStatus(Identity id)
getStatus in interface GridCommandManagerpublic CoGTop getDesktop()
getDesktop in interface AccessDesktoppublic void setDesktop(CoGTop desktop)
setDesktop in interface AccessDesktop
public boolean cancel(String idString)
throws Exception
GridCommandManager
cancel in interface GridCommandManagerException
public boolean cancel(Identity id)
throws Exception
cancel in interface GridCommandManagerException
public boolean suspend(Identity id)
throws Exception
GridCommandManager
suspend in interface GridCommandManagerException
public boolean resume(Identity id)
throws Exception
GridCommandManager
resume in interface GridCommandManagerExceptionpublic Enumeration getAllCommands()
getAllCommands in interface GridCommandManagerpublic Enumeration getUnsubmittedCommands()
getUnsubmittedCommands in interface GridCommandManagerpublic Enumeration getSubmittedCommands()
getSubmittedCommands in interface GridCommandManagerpublic Enumeration getActiveCommands()
getActiveCommands in interface GridCommandManagerpublic Enumeration getFailedCommands()
getFailedCommands in interface GridCommandManagerpublic Enumeration getCompletedCommands()
getCompletedCommands in interface GridCommandManagerpublic Enumeration getSuspendedCommands()
getSuspendedCommands in interface GridCommandManagerpublic Enumeration getCanceledCommands()
getCanceledCommands in interface GridCommandManager
public void setPriorities(long id,
int priority)
setPriorities in interface GridCommandManagerpublic void setScheduler(Scheduler scheduler)
setScheduler in interface GridCommandManagerpublic Scheduler getScheduler()
getScheduler in interface GridCommandManager
public void toXML(String fileName)
throws Exception
toXML in interface GridCommandManagerExceptionpublic void addStatusListener(StatusListener listener)
addStatusListener in interface GridCommandManagerpublic void removeStatusListener(StatusListener listener)
removeStatusListener in interface GridCommandManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||