Java Doc for IJavaThread.java in  » IDE-Eclipse » jdt » org » eclipse » jdt » debug » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » jdt » org.eclipse.jdt.debug.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.eclipse.jdt.debug.core.IJavaThread

All known Subclasses:   org.eclipse.jdt.internal.debug.core.model.JDIThread,
IJavaThread
public interface IJavaThread extends IThread,IFilteredStep(Code)
A thread in a Java virtual machine.

Clients are not intended to implement this interface.


See Also:   org.eclipse.debug.core.model.IThread


Field Summary
final public static  intERR_INCOMPATIBLE_THREAD_STATE
     Status code indicating a request to perform a message send failed because a thread was not suspended by a step or breakpoint event.
final public static  intERR_NESTED_METHOD_INVOCATION
     Status code indicating a request to perform a message send failed because a thread was already performing a message send.
final public static  intERR_THREAD_NOT_SUSPENDED
     Status code indicating a request failed because a thread was not suspended.


Method Summary
public  booleancanTerminateEvaluation()
     Returns whether the currently executing IEvaluationRunnable supports termination.
 IJavaVariablefindVariable(String variableName)
     Returns a variable with the given name, or null if unable to resolve a variable with the name, or if this thread is not currently suspended.

Variable lookup works only when a thread is suspended. Lookup is performed in all stack frames, in a top-down order, returning the first successful match, or null if no match is found.


Parameters:
  variableName - the name of the variable to search for a variable, or null if none
exception:
  DebugException - if this method fails.
public  IJavaObjectgetContendedMonitor()
     Returns a Java object for the monitor for which this thread is currently waiting or null.
public  intgetFrameCount()
     Returns the number of frames in this thread.
public  IJavaObject[]getOwnedMonitors()
     Returns the monitors owned by this thread or null if this thread owns no monitors.
public  IJavaThreadGroupgetThreadGroup()
     Returns the thread group this thread belongs to or null if none.
 StringgetThreadGroupName()
     Returns the name of the thread group this thread belongs to, or null if none. thread group name, or null if none
exception:
  DebugException - if this method fails.
public  booleanhasOwnedMonitors()
     Returns whether this threads owns at least one monitor.
public  booleanisDaemon()
     Returns whether this thread is a daemon thread.
 booleanisOutOfSynch()
     Returns whether any of the stack frames associated with this thread are running code in the VM that is out of synch with the code in the workspace. whether this thread is out of synch with the workspace.
exception:
  DebugException - if this method fails.
 booleanisPerformingEvaluation()
     Returns whether this thread is currently performing an evaluation.
 booleanisSystemThread()
     Returns whether this thread is a system thread. whether this thread is a system thread
exception:
  DebugException - if this method fails.
 booleanmayBeOutOfSynch()
     Returns whether this thread may be running code in the VM that is out of synch with the code in the workspace. whether this thread may be out of synch with the workspace.
exception:
  DebugException - if this method fails.
public  voidqueueRunnable(Runnable runnable)
     Queues the given runnable with the list of runnables associated with this thread. Runnables are executed asynchronously in a separate thread.
public  voidrunEvaluation(IEvaluationRunnable evaluation, IProgressMonitor monitor, int evaluationDetail, boolean hitBreakpoints)
     Invokes the given evaluation with the specified progress monitor.
public  voidstop(IJavaObject exception)
     Request to stops this thread with the given exception.
The result will be the same as calling java.lang.Thread#stop(java.lang.Throwable).
If the thread is suspended when the method is called, the thread must be resumed to complete the action.
exception must represent an exception.
public  voidterminateEvaluation()
     Attempts to terminate the currently executing IEvaluationRunnable in this thread, if any.

Field Detail
ERR_INCOMPATIBLE_THREAD_STATE
final public static int ERR_INCOMPATIBLE_THREAD_STATE(Code)
Status code indicating a request to perform a message send failed because a thread was not suspended by a step or breakpoint event. When a thread is suspended explicitly via the suspend() method, it is not able to perform method invocations (this is a JDI limitation).
See Also:   IJavaObject.sendMessage(StringStringIJavaValue[]IJavaThreadboolean)
See Also:   IJavaClassType.sendMessage(StringStringIJavaValue[]IJavaThread)
See Also:   IJavaClassType.newInstance(StringIJavaValue[]IJavaThread)



ERR_NESTED_METHOD_INVOCATION
final public static int ERR_NESTED_METHOD_INVOCATION(Code)
Status code indicating a request to perform a message send failed because a thread was already performing a message send.
See Also:   IJavaObject.sendMessage(StringStringIJavaValue[]IJavaThreadboolean)
See Also:   IJavaClassType.sendMessage(StringStringIJavaValue[]IJavaThread)
See Also:   IJavaClassType.newInstance(StringIJavaValue[]IJavaThread)



ERR_THREAD_NOT_SUSPENDED
final public static int ERR_THREAD_NOT_SUSPENDED(Code)
Status code indicating a request failed because a thread was not suspended.





Method Detail
canTerminateEvaluation
public boolean canTerminateEvaluation()(Code)
Returns whether the currently executing IEvaluationRunnable supports termination. An IEvaluationRunnable supports termination if it implements ITerminate whether the current evaluation supports termination
since:
   2.1



findVariable
IJavaVariable findVariable(String variableName) throws DebugException(Code)
Returns a variable with the given name, or null if unable to resolve a variable with the name, or if this thread is not currently suspended.

Variable lookup works only when a thread is suspended. Lookup is performed in all stack frames, in a top-down order, returning the first successful match, or null if no match is found.


Parameters:
  variableName - the name of the variable to search for a variable, or null if none
exception:
  DebugException - if this method fails. Reasons include:
  • Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.



getContendedMonitor
public IJavaObject getContendedMonitor() throws DebugException(Code)
Returns a Java object for the monitor for which this thread is currently waiting or null. IJavaObject the contended monitor object or null if thisthread is not waiting on a monitor.
exception:
  DebugException - if an exception occurs while retrieving the contended monitor.
since:
   2.1



getFrameCount
public int getFrameCount() throws DebugException(Code)
Returns the number of frames in this thread. number of stack frames
throws:
  DebugException - if an exception occurs while retrieving the count
since:
   3.3



getOwnedMonitors
public IJavaObject[] getOwnedMonitors() throws DebugException(Code)
Returns the monitors owned by this thread or null if this thread owns no monitors. the owned monitors
exception:
  DebugException - if an exception occurs while retrievingthe owned monitors of this thread.
since:
   2.1



getThreadGroup
public IJavaThreadGroup getThreadGroup() throws DebugException(Code)
Returns the thread group this thread belongs to or null if none. thread group or null
throws:
  DebugException -
since:
   3.2



getThreadGroupName
String getThreadGroupName() throws DebugException(Code)
Returns the name of the thread group this thread belongs to, or null if none. thread group name, or null if none
exception:
  DebugException - if this method fails. Reasons include:
  • Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.



hasOwnedMonitors
public boolean hasOwnedMonitors() throws DebugException(Code)
Returns whether this threads owns at least one monitor. boolean whether this thread owns a monitor
exception:
  DebugException - if an exception occurs determiningif there are owned monitors.
since:
   2.1



isDaemon
public boolean isDaemon() throws DebugException(Code)
Returns whether this thread is a daemon thread. whether this thread is a daemon thread
throws:
  DebugException - if an exception occurs while determining status
since:
   3.3



isOutOfSynch
boolean isOutOfSynch() throws DebugException(Code)
Returns whether any of the stack frames associated with this thread are running code in the VM that is out of synch with the code in the workspace. whether this thread is out of synch with the workspace.
exception:
  DebugException - if this method fails. Reasons include:
  • Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.

  • since:
       2.0



isPerformingEvaluation
boolean isPerformingEvaluation()(Code)
Returns whether this thread is currently performing an evaluation. whether this thread is currently performingan evaluation
since:
   2.0



isSystemThread
boolean isSystemThread() throws DebugException(Code)
Returns whether this thread is a system thread. whether this thread is a system thread
exception:
  DebugException - if this method fails. Reasons include:
  • Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.



mayBeOutOfSynch
boolean mayBeOutOfSynch() throws DebugException(Code)
Returns whether this thread may be running code in the VM that is out of synch with the code in the workspace. whether this thread may be out of synch with the workspace.
exception:
  DebugException - if this method fails. Reasons include:
  • Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.

  • since:
       2.0



queueRunnable
public void queueRunnable(Runnable runnable)(Code)
Queues the given runnable with the list of runnables associated with this thread. Runnables are executed asynchronously in a separate thread. This method should be used to execute any code which performs an operation like a method invocation.
Parameters:
  runnable - the runnable to execute.
since:
   2.1



runEvaluation
public void runEvaluation(IEvaluationRunnable evaluation, IProgressMonitor monitor, int evaluationDetail, boolean hitBreakpoints) throws DebugException(Code)
Invokes the given evaluation with the specified progress monitor. This thread fires a resume event when the evaluation begins, and a suspend event when the evaluation completes or throws an exception. The events are given a detail as specified by evaluationDetail (one of DebugEvent.EVALUATION or DebugEvent.EVALUATION_IMPLICIT).
Parameters:
  evaluation - the evaluation to perform
Parameters:
  monitor - progress monitor (may be null
Parameters:
  evaluationDetail - one of DebugEvent.EVALUATION orDebugEvent.EVALUATION_IMPLICIT
Parameters:
  hitBreakpoints - whether or not breakpoints should be honoredin this thread during the evaluation. If false, breakpointshit in this thread during the evaluation will be ignored.
exception:
  DebugException - if an exception occurs performingthe evaluation
since:
   2.0



stop
public void stop(IJavaObject exception) throws DebugException(Code)
Request to stops this thread with the given exception.
The result will be the same as calling java.lang.Thread#stop(java.lang.Throwable).
If the thread is suspended when the method is called, the thread must be resumed to complete the action.
exception must represent an exception.
Parameters:
  exception - the exception to throw.
exception:
  DebugException -
since:
   3.0
See Also:   java.lang.Thread.stop(java.lang.Throwable)



terminateEvaluation
public void terminateEvaluation() throws DebugException(Code)
Attempts to terminate the currently executing IEvaluationRunnable in this thread, if any. Evaluations may be composed of a series of instructions. Terminating an evaluation means stopping the evaluation after the current instruction completes. A single instruction (such as a method invocation) cannot be interrupted.
exception:
  DebugException - if an exception occurs whileterminating the evaluation.
since:
   2.1



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.