com.ibm.dtfj.analyzer.helpers
Class OneJavaHeap

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

public class OneJavaHeap
extends SimpleAnalyzerBean
implements IDeclareExtensions

Print basic information about one DTFJ JavaHeap object.


Constructor Summary
OneJavaHeap()
          Null constructor for use as JavaBean
 
Method Summary
 void declareExtensions(SimpleExtensionRegistry registry)
          Register all extension points and extension providers contained in this bean.
static OneJavaHeap getInstance(IAnalyzerContext context, com.ibm.dtfj.java.JavaHeap parent)
          Find the OneJavaHeap bean instance associated with a given parent JavaHeap (create it if necessary)
 int getMemorySize()
           
 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 JavaHeap 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

OneJavaHeap

public OneJavaHeap()
Null constructor for use as JavaBean

Method Detail

getInstance

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

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

setParent

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

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()

getMemorySize

public int getMemorySize()
Returns:
the total memory size allocated for this JavaHeap

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.