Package org.eclipse.debug.core.model
Interface ITerminate
-
- All Known Subinterfaces:
IDebugTarget,ILaunch,IProcess,IStackFrame,IThread
- All Known Implementing Classes:
Launch,RuntimeProcess
public interface ITerminateProvides the ability to terminate an execution context - for example, a thread, debug target or process.Clients may implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanTerminate()Returns whether this element can be terminated.booleanisTerminated()Returns whether this element is terminated.voidterminate()Causes this element to terminate, generating aTERMINATEevent.
-
-
-
Method Detail
-
canTerminate
boolean canTerminate()
Returns whether this element can be terminated.- Returns:
- whether this element can be terminated
-
isTerminated
boolean isTerminated()
Returns whether this element is terminated.- Returns:
- whether this element is terminated
-
terminate
void terminate() throws DebugExceptionCauses this element to terminate, generating aTERMINATEevent. Implementations may be blocking or non-blocking.- Throws:
DebugException- on failure. Reasons include:- TARGET_REQUEST_FAILED - The request failed in the target
- NOT_SUPPORTED - The capability is not supported by the target
-
-