|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTranslatableAnalyzer
com.ibm.dtfj.analyzer.base.SimpleAnalyzerBean
com.ibm.dtfj.analyzer.helpers.OneImage
public class OneImage
Print and extract basic information about one DTFJ Image
Count and navigate through multiple AddressSpaces, Processes, Runtimes within the Image.
Constructor Summary | |
---|---|
OneImage()
Null constructor for use as JavaBean |
Method Summary | |
---|---|
com.ibm.dtfj.image.ImageAddressSpace |
getAddressSpace(int targetAddressSpace)
Obtain the ImageAddressSpace object associated with a specific index in the Image. |
static OneImage |
getInstance(IAnalyzerContext context,
com.ibm.dtfj.image.Image parent)
Find the OneImage bean instance associated with a given parent Image (create it if necessary) |
int |
getNumAddressSpaces()
|
int |
getNumProcesses()
|
int |
getNumProcesses(int targetAddressSpace)
Find the number of Processes within a given AddressSpace. |
int |
getNumRuntimes()
|
int |
getNumRuntimes(int targetAddressSpace,
int targetProcess)
Find the number of Runtimes within a given (AddressSpace,Process) pair. |
com.ibm.dtfj.image.ImageProcess |
getProcess(int targetAddressSpace,
int targetProcess)
Obtain the ImageProcess object associated with a specific set of (ImageAddressSpace, ImageProcess) in the Image. |
com.ibm.dtfj.runtime.ManagedRuntime |
getRuntime(int targetAddressSpace,
int targetProcess,
int targetRuntime)
Obtain the Runtime object associated with a specific set of (ImageAddressSpace, ImageProcess, ManagedRuntime) in the Image. |
protected void |
printCommon(IAnalysisReport out)
Print the general information about this Image, available in all versions of the DTFJ API, as a segment of a report |
protected void |
printRuntimes(IAnalysisReport out)
Print information about the runtimes contained in this Image, 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 |
scanAllRuntimes()
Scan through all the addressspaces/processes/runtimes in this image to initialize the counts of each type of object and enable subsequent calls to createSpecificContext(), createSingleContext and getAllContexts(). |
void |
setParent(java.lang.Object parent)
Set the parent Image underlying this analyzer bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OneImage()
Method Detail |
---|
public static OneImage getInstance(IAnalyzerContext context, com.ibm.dtfj.image.Image parent)
context
- the AnalyzerContext in which to locate this bean instanceparent
- the parent Image underlying this analyzer bean
public void setParent(java.lang.Object parent)
setParent
in interface IWrapper
setParent
in class SimpleAnalyzerBean
parent
- The parent object to set. Must be of type Image.
compatible with the type of analyzer bean that receives itIWrapper.setParent(java.lang.Object)
public int getNumAddressSpaces()
public com.ibm.dtfj.image.ImageAddressSpace getAddressSpace(int targetAddressSpace)
targetAddressSpace
- index of the desired ImageAddressSpace (0..n-1)
public int getNumProcesses()
public int getNumProcesses(int targetAddressSpace)
targetAddressSpace
- index of the desired ImageAddressSpace (1..n)
public com.ibm.dtfj.image.ImageProcess getProcess(int targetAddressSpace, int targetProcess)
targetAddressSpace
- index of the desired ImageAddressSpace (0..n-1)targetProcess
- index of the desired ImageProcess (0..n-1)
public int getNumRuntimes()
public int getNumRuntimes(int targetAddressSpace, int targetProcess)
targetAddressSpace
- index of the desired ImageAddressSpace (1..n)targetProcess
- index of the desired ImageProcess (1..n)
public com.ibm.dtfj.runtime.ManagedRuntime getRuntime(int targetAddressSpace, int targetProcess, int targetRuntime)
targetAddressSpace
- index of the desired ImageAddressSpace (0..n-1)targetProcess
- index of the desired ImageProcess (0..n-1)targetRuntime
- index of the desired ManagedRuntime (0..n-1)
public void scanAllRuntimes()
public IAnalysisReport produceReport()
IReport
produceReport
in interface IReport
produceReport
in class SimpleAnalyzerBean
IReport.produceReport()
protected void printCommon(IAnalysisReport out)
out
- a AnalysisReport object to which to write the outputprotected void printRuntimes(IAnalysisReport out)
out
- a AnalysisReport object to which to write the output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |