com.ibm.dtfj.analyzer.was
Class WASThreadIDs

java.lang.Object
  extended by SimpleAnalyzerBean
      extended by com.ibm.dtfj.analyzer.was.base.WASAnalyzerBase
          extended by com.ibm.dtfj.analyzer.was.WASThreadIDs

public class WASThreadIDs
extends WASAnalyzerBase

Keep track of the thread IDs used in WAS, and printed in WAS log/trace messages.
This version is valid for WAS 5.1 (where IDs are the hashCode of the thread object) and for WAS 6.0 and beyond (where IDs are obtained from the java.util.logging facility).


Constructor Summary
WASThreadIDs()
           
 
Method Summary
 int getCachingPriority()
          Force caching of this analyzer
static WASThreadIDs getInstance(IAnalyzerContext context, com.ibm.dtfj.java.JavaRuntime parent)
          Find the WASThreadIDs bean instance associated with a given parent runtime (create it if necessary)
 java.lang.String getShortDescription()
           
 java.lang.String getVersion()
           
 long getWASThreadID(com.ibm.dtfj.java.JavaObject threadObject)
           
 long getWASThreadID(com.ibm.dtfj.java.JavaThread thread)
           
 boolean isPrimaryAnalyzer()
           
 IAnalysisReport produceReport()
           
 
Methods inherited from class com.ibm.dtfj.analyzer.was.base.WASAnalyzerBase
getCategories, getResourceBundleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WASThreadIDs

public WASThreadIDs()
Method Detail

getCachingPriority

public int getCachingPriority()
Force caching of this analyzer

See Also:
com.ibm.dtfj.analyzer.ext.IAnalyzerBase#getCachingPriority()

getVersion

public java.lang.String getVersion()
See Also:
com.ibm.dtfj.analyzer.ext.IAnalyzerBase#getVersion()

getShortDescription

public java.lang.String getShortDescription()
See Also:
com.ibm.dtfj.analyzer.ext.IAnalyzerBase#getShortDescription()

isPrimaryAnalyzer

public boolean isPrimaryAnalyzer()
Overrides:
isPrimaryAnalyzer in class WASAnalyzerBase
See Also:
com.ibm.dtfj.analyzer.ext.IAnalyzerBase#isPrimaryAnalyzer()

getInstance

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

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

getWASThreadID

public long getWASThreadID(com.ibm.dtfj.java.JavaThread thread)
                    throws com.ibm.dtfj.image.DTFJException
Parameters:
thread - the JavaThread for which we want the WAS thread ID
Returns:
the WAS thread ID for the specified thread
Throws:
com.ibm.dtfj.image.DTFJException

getWASThreadID

public long getWASThreadID(com.ibm.dtfj.java.JavaObject threadObject)
                    throws com.ibm.dtfj.image.DTFJException
Parameters:
threadObject - the JavaObject for the java/lang/Thread instance for which we want the WAS thread ID
Returns:
the WAS thread ID for the specified thread
Throws:
com.ibm.dtfj.image.DTFJException

produceReport

public IAnalysisReport produceReport()
See Also:
com.ibm.dtfj.analyzer.ext.IReport#produceReport()


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