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

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.processcontrol.ProcessControllerDRMAA
All Implemented Interfaces:
ProcessController

public class ProcessControllerDRMAA
extends java.lang.Object
implements ProcessController

The Class ProcessControllerDRMAA.


Constructor Summary
ProcessControllerDRMAA()
          Instantiates a new process controller drmaa.
 
Method Summary
 void controlJob(ProcessControlAction Action)
          Control job.
 boolean destroy()
          Destroy.
 java.lang.Integer getExitCode()
          Gets the exit code.
 java.lang.Process getProcess()
          Gets the process.
 ProcessStatus getStatus()
          Gets the status.
 java.io.InputStream getStderrFile()
          Gets the stderr file.
 java.io.InputStream getStdoutFile()
          Gets the stdout file.
 long getSubmissionTime()
          Gets the submission time.
 boolean Setup(java.util.List<java.lang.String> CommandList)
          Setup.
 boolean submit()
          Submit.
 java.lang.String toString()
          To string.
 int waitFor()
          Wait for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessControllerDRMAA

public ProcessControllerDRMAA()
Instantiates a new process controller drmaa.

Method Detail

Setup

public boolean Setup(java.util.List<java.lang.String> CommandList)
Description copied from interface: ProcessController
Setup.

Specified by:
Setup in interface ProcessController
Parameters:
CommandList - the command
Returns:
true, if successful

getProcess

public java.lang.Process getProcess()
Description copied from interface: ProcessController
Gets the process.

Specified by:
getProcess in interface ProcessController
Returns:
the process

getSubmissionTime

public long getSubmissionTime()
Description copied from interface: ProcessController
Gets the submission time.

Specified by:
getSubmissionTime in interface ProcessController
Returns:
the submission time

toString

public java.lang.String toString()
Description copied from interface: ProcessController
To string.

Specified by:
toString in interface ProcessController
Overrides:
toString in class java.lang.Object
Returns:
the string

getStatus

public ProcessStatus getStatus()
Description copied from interface: ProcessController
Gets the status.

Specified by:
getStatus in interface ProcessController
Returns:
the status

getStderrFile

public java.io.InputStream getStderrFile()
Description copied from interface: ProcessController
Gets the stderr file.

Specified by:
getStderrFile in interface ProcessController
Returns:
the stderr file

getStdoutFile

public java.io.InputStream getStdoutFile()
Description copied from interface: ProcessController
Gets the stdout file.

Specified by:
getStdoutFile in interface ProcessController
Returns:
the stdout file

submit

public boolean submit()
Description copied from interface: ProcessController
Submit.

Specified by:
submit in interface ProcessController
Returns:
true, if successful

destroy

public boolean destroy()
Description copied from interface: ProcessController
Destroy.

Specified by:
destroy in interface ProcessController
Returns:
true, if successful

getExitCode

public java.lang.Integer getExitCode()
Description copied from interface: ProcessController
Gets the exit code.

Specified by:
getExitCode in interface ProcessController
Returns:
the exit code

waitFor

public int waitFor()
Description copied from interface: ProcessController
Wait for.

Specified by:
waitFor in interface ProcessController
Returns:
the int

controlJob

public void controlJob(ProcessControlAction Action)
Description copied from interface: ProcessController
Control job.

Specified by:
controlJob in interface ProcessController
Parameters:
Action - the action