Package de.uka.ipd.sdq.workflow
Class WorkflowProcess
java.lang.Object
org.eclipse.core.runtime.PlatformObject
de.uka.ipd.sdq.workflow.WorkflowProcess
- All Implemented Interfaces:
IAdaptable,IProcess,ITerminate
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_ID, ATTR_PROCESS_LABEL, ATTR_PROCESS_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new workflow process.WorkflowProcess(ILaunch myLaunch) Instantiates a new workflow process. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppender(StreamsProxyAppender appender) Adds the appender.booleangetAdapter(Class adapter) getAttribute(String key) intgetLabel()booleanvoidsetAttribute(String key, String value) void
-
Constructor Details
-
WorkflowProcess
Instantiates a new workflow process.- Parameters:
myLaunch- the my launch
-
WorkflowProcess
public WorkflowProcess()Instantiates a new workflow process.
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfaceIProcess
-
getExitValue
- Specified by:
getExitValuein interfaceIProcess- Throws:
DebugException
-
getLabel
-
getLaunch
-
getStreamsProxy
- Specified by:
getStreamsProxyin interfaceIProcess
-
setAttribute
- Specified by:
setAttributein interfaceIProcess
-
getAdapter
- Specified by:
getAdapterin interfaceIAdaptable- Overrides:
getAdapterin classPlatformObject
-
canTerminate
public boolean canTerminate()- Specified by:
canTerminatein interfaceITerminate
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceITerminate
-
terminate
- Specified by:
terminatein interfaceITerminate- Throws:
DebugException
-
addAppender
Adds the appender.- Parameters:
appender- the appender
-