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

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

public class ProcessControllerNative
extends java.lang.Object
implements ProcessController

The Class ProcessControllerNative.


Constructor Summary
ProcessControllerNative(java.util.List<java.lang.String> Command)
          Instantiates a new process controller native.
 
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.
 int waitFor()
          Wait for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.jhu.ece.iacl.jist.processcontrol.ProcessController
toString
 

Constructor Detail

ProcessControllerNative

public ProcessControllerNative(java.util.List<java.lang.String> Command)
Instantiates a new process controller native.

Parameters:
Command - the command
Method Detail

Setup

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

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

getStatus

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

Specified by:
getStatus in interface ProcessController
Returns:
the status

getSubmissionTime

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

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

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

controlJob

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

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

getProcess

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

Specified by:
getProcess in interface ProcessController
Returns:
the process

waitFor

public int waitFor()
            throws java.lang.InterruptedException
Description copied from interface: ProcessController
Wait for.

Specified by:
waitFor in interface ProcessController
Returns:
the int
Throws:
java.lang.InterruptedException - the interrupted exception

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