Package de.uka.ipd.sdq.workflow.ui
Class WorkflowProcess
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- de.uka.ipd.sdq.workflow.ui.WorkflowProcess
-
- All Implemented Interfaces:
IAdaptable
,IProcess
,ITerminate
public class WorkflowProcess extends PlatformObject implements IProcess
An implementation of an IProcess which is able to log to the provided process console, but otherwise unable to terminate, suspend, etc. Extend this class if you can provide additional control over the running process.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.debug.core.model.IProcess
ATTR_CMDLINE, ATTR_PROCESS_LABEL, ATTR_PROCESS_TYPE
-
-
Constructor Summary
Constructors Constructor Description WorkflowProcess()
Instantiates a new workflow process.WorkflowProcess(ILaunch myLaunch)
Instantiates a new workflow process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAppender(StreamsProxyAppender appender)
Adds the appender.boolean
canTerminate()
Object
getAdapter(Class adapter)
String
getAttribute(String key)
int
getExitValue()
String
getLabel()
ILaunch
getLaunch()
IStreamsProxy
getStreamsProxy()
boolean
isTerminated()
void
setAttribute(String key, String value)
void
terminate()
-
-
-
Constructor Detail
-
WorkflowProcess
public WorkflowProcess(ILaunch myLaunch)
Instantiates a new workflow process.- Parameters:
myLaunch
- the my launch
-
WorkflowProcess
public WorkflowProcess()
Instantiates a new workflow process.
-
-
Method Detail
-
getAttribute
public String getAttribute(String key)
- Specified by:
getAttribute
in interfaceIProcess
-
getExitValue
public int getExitValue() throws DebugException
- Specified by:
getExitValue
in interfaceIProcess
- Throws:
DebugException
-
getStreamsProxy
public IStreamsProxy getStreamsProxy()
- Specified by:
getStreamsProxy
in interfaceIProcess
-
setAttribute
public void setAttribute(String key, String value)
- Specified by:
setAttribute
in interfaceIProcess
-
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interfaceIAdaptable
- Overrides:
getAdapter
in classPlatformObject
-
canTerminate
public boolean canTerminate()
- Specified by:
canTerminate
in interfaceITerminate
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interfaceITerminate
-
terminate
public void terminate() throws DebugException
- Specified by:
terminate
in interfaceITerminate
- Throws:
DebugException
-
addAppender
public void addAppender(StreamsProxyAppender appender)
Adds the appender.- Parameters:
appender
- the appender
-
-