com.ibm.dtfj.analyzer.helpers
Class AllImageThreads

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

public class AllImageThreads
extends SectionsTableBase

Print and query the list of all ImageThread objects within a DTFJ JavaRuntime
Identify the ImageThreads that are not associated with a JavaThread.


Constructor Summary
AllImageThreads()
          Null constructor for use as JavaBean
 
Method Summary
 com.ibm.dtfj.image.ImageThread getImageThreadByID(java.lang.String ID)
          Find the ImageThread that has a particular thread ID
static AllImageThreads getInstance(IAnalyzerContext context, com.ibm.dtfj.image.ImageProcess parent)
          Find the AllImageThreads bean instance associated with a given parent ImageProcess (create it if necessary)
 int getThreadsCount()
           
 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 ImageProcess underlying this analyzer bean.
 
Methods inherited from class com.ibm.dtfj.analyzer.helpers.base.SectionsTableBase
findContainingSection, findContainingSection, findContainingSection, getAllSections, getAllSectionsCount, getAllSectionsSize, getAllSectionsSizeAsString, getCachingPriority, initializeOneSection, initializeOneSection, setChildInitializationHelper
 
Methods inherited from class com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
allocateReport, allocateReportOptions, allocateSecondaryReport, 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

AllImageThreads

public AllImageThreads()
Null constructor for use as JavaBean

Method Detail

getInstance

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

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

setParent

public void setParent(java.lang.Object parent)
Set the parent ImageProcess 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 ImageProcess. compatible with the type of analyzer bean that receives it
See Also:
IWrapper.setParent(java.lang.Object)

getThreadsCount

public int getThreadsCount()
                    throws com.ibm.dtfj.image.DTFJException
Returns:
the total number of native threads in this image
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()

getImageThreadByID

public com.ibm.dtfj.image.ImageThread getImageThreadByID(java.lang.String ID)
Find the ImageThread that has a particular thread ID

Parameters:
ID - the desired threadID, as returned by ImageThread.getID()
Returns:
the desired ImageThread instance, or null if not found;


© 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.