edu.jhu.ece.iacl.jist.processcontrol
Interface ProcessController

All Known Implementing Classes:
ProcessControllerDRMAA, ProcessControllerNative

public interface ProcessController

The Interface ProcessController.


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> command)
          Setup.
 boolean submit()
          Submit.
 java.lang.String toString()
          To string.
 int waitFor()
          Wait for.
 

Method Detail

getStatus

ProcessStatus getStatus()
Gets the status.

Returns:
the status

getSubmissionTime

long getSubmissionTime()
Gets the submission time.

Returns:
the submission time

getExitCode

java.lang.Integer getExitCode()
Gets the exit code.

Returns:
the exit code

submit

boolean submit()
Submit.

Returns:
true, if successful

destroy

boolean destroy()
Destroy.

Returns:
true, if successful

getProcess

java.lang.Process getProcess()
Gets the process.

Returns:
the process

waitFor

int waitFor()
            throws java.lang.InterruptedException
Wait for.

Returns:
the int
Throws:
java.lang.InterruptedException - the interrupted exception

getStdoutFile

java.io.InputStream getStdoutFile()
Gets the stdout file.

Returns:
the stdout file

getStderrFile

java.io.InputStream getStderrFile()
Gets the stderr file.

Returns:
the stderr file

controlJob

void controlJob(ProcessControlAction Action)
Control job.

Parameters:
Action - the action

toString

java.lang.String toString()
To string.

Overrides:
toString in class java.lang.Object
Returns:
the string

Setup

boolean Setup(java.util.List<java.lang.String> command)
Setup.

Parameters:
command - the command
Returns:
true, if successful