|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.execution.core.impl.ExecutionComponentImpl
org.eclipse.hyades.execution.core.impl.ProcessExecutorImpl
public class ProcessExecutorImpl
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.hyades.execution.core.IExecutor |
|---|
CONTROL_EVENT_RESUME, CONTROL_EVENT_SUSPEND |
| Fields inherited from interface org.eclipse.hyades.execution.core.IExecutionComponent |
|---|
DEAD, INACTIVE, NOT_CONFIGURED, READY, SUSPENDED |
| Constructor Summary | |
|---|---|
ProcessExecutorImpl()
|
|
ProcessExecutorImpl(java.lang.String _name)
|
|
| Method Summary | |
|---|---|
IExecutableObject |
getCompatibleExecutableObject(java.lang.String classname)
Returns an empty instance of an IExecutableObject that is compatible with this IExecutor. |
IExecutableObject |
getExecutableObject()
|
java.lang.String |
getPid()
Return the process id of the started process |
IProcessConsole |
getProcessConsole()
Get the process console associated with the current executor |
int |
getProcessStatus(int pid)
Get the process status |
java.io.InputStream |
getStandardErrorStream()
Get the InputStream for reading from the process's stderr pipe. |
java.io.OutputStream |
getStandardInputStream()
Get the OutputStream for writing to the process's stdin pipe. |
java.io.InputStream |
getStandardOutputStream()
Get the InputStream for reading from the process's stdout pipe. |
void |
init()
Initialization routine. |
void |
kill()
Kill the active process (invoking a JNI call) |
void |
launch()
Launch the process and start the console handlers threads. |
java.lang.String |
performControlEvent(java.lang.String controlEvent,
java.lang.String[] params)
Performs the control event specified. |
void |
setExecutableObject(IExecutableObject obj)
Set the executable object for launch |
boolean |
supportsControlEvent(java.lang.String controlEvent)
Returns a boolean specifying whether the control event specified is supported. |
| Methods inherited from class org.eclipse.hyades.execution.core.impl.ExecutionComponentImpl |
|---|
addChild, addExecutionComponentStateChangeListener, fireStateChangeEvent, getChildById, getChildByName, getChildren, getId, getName, getNode, getParent, getState, getType, getVersion, handleMessage, removeChild, removeExecutionComponentStateChangeListener, sendMessage, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.hyades.execution.core.IExecutionComponent |
|---|
addChild, addExecutionComponentStateChangeListener, fireStateChangeEvent, getChildById, getChildByName, getChildren, getId, getName, getNode, getParent, getState, getType, getVersion, handleMessage, removeChild, removeExecutionComponentStateChangeListener, sendMessage, setParent |
| Constructor Detail |
|---|
public ProcessExecutorImpl()
public ProcessExecutorImpl(java.lang.String _name)
| Method Detail |
|---|
public void init()
init in interface IExecutionComponentinit in class ExecutionComponentImplIExecutionComponent.init()public void setExecutableObject(IExecutableObject obj)
setExecutableObject in interface IExecutorobj - IExecutableObjectpublic IExecutableObject getExecutableObject()
getExecutableObject in interface IExecutorIExecutor.getExecutableObject()public void launch()
launch in interface IExecutorpublic void kill()
kill in interface IExecutor
public java.io.OutputStream getStandardInputStream()
throws ExecutionComponentStateException
getStandardInputStream in interface IProcessConsoleExecutionComponentStateException
public java.io.InputStream getStandardOutputStream()
throws ExecutionComponentStateException
getStandardOutputStream in interface IProcessConsoleExecutionComponentStateException
public java.io.InputStream getStandardErrorStream()
throws ExecutionComponentStateException
getStandardErrorStream in interface IProcessConsoleExecutionComponentStateExceptionpublic java.lang.String getPid()
public int getProcessStatus(int pid)
pid -
public IProcessConsole getProcessConsole()
getProcessConsole in interface IExecutor
public IExecutableObject getCompatibleExecutableObject(java.lang.String classname)
throws java.lang.ClassNotFoundException
IExecutorIssue: Do we want this to be the ExecutableObject (thus replacing the setExecutableObject() method), and if so, how do we know when to pass the object across the wire (since the IExecutor doing the real work won't be the same instance of IExecutor that contains this IExecutableObject.)
getCompatibleExecutableObject in interface IExecutorjava.lang.ClassNotFoundExceptionorg.eclipse.hyades.execution.core.IExecutor.getCompatibleExecutableObject()public boolean supportsControlEvent(java.lang.String controlEvent)
IExecutor
supportsControlEvent in interface IExecutorcontrolEvent - Contol Event in question.
public java.lang.String performControlEvent(java.lang.String controlEvent,
java.lang.String[] params)
IExecutor
performControlEvent in interface IExecutorcontrolEvent - Contol Event to perform.
|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||