edu.jhu.ece.iacl.jist.processcontrol
Class DispatchController

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.processcontrol.DispatchController

public class DispatchController
extends java.lang.Object

The Class DispatchController.


Constructor Summary
DispatchController()
           
 
Method Summary
 void closeSession(boolean terminateAllActiveJobs)
          Close session.
 ProcessController createJob(boolean SGE, java.util.List<java.lang.String> Command)
          Creates the job.
static Session getDRMAASession()
          Gets the dRMAA session.
static java.util.ArrayList getJobList()
          Gets the job list.
 boolean initDRMAASession()
          Inits the drmaa session.
 java.util.ArrayList<ProcessController> listAllJobs()
          List all jobs.
 boolean restoreDRMAASession(java.io.File SessionIDFile)
          Restore drmaa session.
 boolean saveDRMAASession(java.io.File SessionIDFile)
          Save drmaa session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatchController

public DispatchController()
Method Detail

getDRMAASession

public static Session getDRMAASession()
Gets the dRMAA session.

Returns:
the dRMAA session

getJobList

public static java.util.ArrayList getJobList()
Gets the job list.

Returns:
the job list

initDRMAASession

public boolean initDRMAASession()
Inits the drmaa session.

Returns:
true, if successful

restoreDRMAASession

public boolean restoreDRMAASession(java.io.File SessionIDFile)
Restore drmaa session.

Parameters:
SessionIDFile - the session id file
Returns:
true, if successful

saveDRMAASession

public boolean saveDRMAASession(java.io.File SessionIDFile)
Save drmaa session.

Parameters:
SessionIDFile - the session id file
Returns:
true, if successful

createJob

public ProcessController createJob(boolean SGE,
                                   java.util.List<java.lang.String> Command)
Creates the job.

Parameters:
SGE - the sGE
Command - the command
Returns:
the process controller

listAllJobs

public java.util.ArrayList<ProcessController> listAllJobs()
List all jobs.

Returns:
the array list< process controller>

closeSession

public void closeSession(boolean terminateAllActiveJobs)
Close session.

Parameters:
terminateAllActiveJobs - the terminate all active jobs