com.ibm.dtfj.analyzer.helpers
Class OneJavaThread

java.lang.Object
  extended by TranslatableAnalyzer
      extended by com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
          extended by com.ibm.dtfj.analyzer.helpers.OneJavaThread
All Implemented Interfaces:
IAnalyzerBase, IDeclareExtensions, IReport, IWrapper

public class OneJavaThread
extends SimpleAnalyzerBean
implements IDeclareExtensions

Print and extract basic information about one DTFJ JavaThread object
Cross-reference against the list of monitors to determine which monitors this thread currently holds and waits for.


Constructor Summary
OneJavaThread()
          Null constructor for use as JavaBean
 
Method Summary
 void declareExtensions(SimpleExtensionRegistry registry)
          Register all extension points and extension providers contained in this bean.
 OneImageThread getAssociatedImageThread()
           
static OneJavaThread getInstance(IAnalyzerContext context, com.ibm.dtfj.java.JavaThread parent)
          Find the OneJavaThread bean instance associated with a given parent JavaThread (create it if necessary)
 void printBasicInfo(IAnalysisReport out)
          Print the basic information associated with this thread, as a segment of a report
 void printMonitorInfo(IAnalysisReport out)
          Print the monitor information associated with this thread, as a segment of a report
 void printNativeInfo(IAnalysisReport out)
          Print the native thread information associated with this thread, as a segment of a report
 void printObjectInfo(IAnalysisReport out)
          Print the thread object associated with this thread, as a segment of a report
 void printStackAreaInfo(IAnalysisReport out)
          Print the stack area information associated with this thread, as a segment of a report
 void printStackFramesInfo(IAnalysisReport out, int maxFrames)
          Print the stack frames associated with this thread, as a segment of a report
 IAnalysisReport produceReport()
          Generate a report which will be encapsulated in the IAnalysisReport object for later use by some formatter.
 void setParent(java.lang.Object parent)
          Set the parent JavaThread underlying this analyzer bean.
 
Methods inherited from class com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
allocateReport, allocateReportOptions, allocateSecondaryReport, getCachingPriority, getCategories, getContext, getIdentityString, getInstance, getLogger, getLongDescription, getName, getNextValidObject, getParent, getReportExtensionHelper, getResourceBundleName, getShortDescription, getVersion, isPrimaryAnalyzer, printEmbeddedReport, printEmbeddedReport, printEmbeddedReportWithOptions, printEmbeddedReportWithOptions, printReportInfoHeader, recordInternalExceptionStatic, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneJavaThread

public OneJavaThread()
Null constructor for use as JavaBean

Method Detail

getInstance

public static OneJavaThread getInstance(IAnalyzerContext context,
                                        com.ibm.dtfj.java.JavaThread parent)
Find the OneJavaThread bean instance associated with a given parent JavaThread (create it if necessary)

Parameters:
context - the AnalyzerContext in which to locate this bean instance
parent - the parent JavaThread underlying this analyzer bean
Returns:
the desired OneJavaThread analyzer bean

setParent

public void setParent(java.lang.Object parent)
Set the parent JavaThread underlying this analyzer bean.

Specified by:
setParent in interface IWrapper
Overrides:
setParent in class SimpleAnalyzerBean
Parameters:
parent - The parent object to set. Must be of type JavaThread. compatible with the type of analyzer bean that receives it
See Also:
IWrapper.setParent(java.lang.Object)

getAssociatedImageThread

public OneImageThread getAssociatedImageThread()
                                        throws com.ibm.dtfj.image.DTFJException
Returns:
Returns the associatedImageThread.
Throws:
com.ibm.dtfj.image.DTFJException

produceReport

public IAnalysisReport produceReport()
Description copied from interface: IReport
Generate a report which will be encapsulated in the IAnalysisReport object for later use by some formatter.

Specified by:
produceReport in interface IReport
Overrides:
produceReport in class SimpleAnalyzerBean
Returns:
- the generic report object which will be given to some formatter
See Also:
IReport.produceReport()

printNativeInfo

public void printNativeInfo(IAnalysisReport out)
Print the native thread information associated with this thread, as a segment of a report

Parameters:
out - the report on which to write the information

printStackFramesInfo

public void printStackFramesInfo(IAnalysisReport out,
                                 int maxFrames)
Print the stack frames associated with this thread, as a segment of a report

Parameters:
out - the report on which to write the information
maxFrames - maximum number of frames to include in the report

printStackAreaInfo

public void printStackAreaInfo(IAnalysisReport out)
Print the stack area information associated with this thread, as a segment of a report

Parameters:
out - the report on which to write the information

printMonitorInfo

public void printMonitorInfo(IAnalysisReport out)
Print the monitor information associated with this thread, as a segment of a report

Parameters:
out - the report on which to write the information

printObjectInfo

public void printObjectInfo(IAnalysisReport out)
Print the thread object associated with this thread, as a segment of a report

Parameters:
out - the report on which to write the information

printBasicInfo

public void printBasicInfo(IAnalysisReport out)
Print the basic information associated with this thread, as a segment of a report

Parameters:
out - the report on which to write the information

declareExtensions

public void declareExtensions(SimpleExtensionRegistry registry)
Description copied from interface: IDeclareExtensions
Register all extension points and extension providers contained in this bean. This method will be invoked by the runtime during initialization to discover the extensions.

Specified by:
declareExtensions in interface IDeclareExtensions
Parameters:
registry - a SimpleExtensionRegistry in which to register the extensions
See Also:
IDeclareExtensions.declareExtensions(com.ibm.dtfj.analyzer.internal.reportextensions.SimpleExtensionRegistry)


© Copyright IBM Corp. 2007, 2008 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.