Java Doc for MPDataProvider.java in  » 6.0-JDK-Modules » j2me » com » sun » cldchi » tools » memoryprofiler » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.cldchi.tools.memoryprofiler.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.cldchi.tools.memoryprofiler.data.MPDataProvider

All known Subclasses:   com.sun.cldchi.tools.memoryprofiler.data.GlobalData,
MPDataProvider
public interface MPDataProvider (Code)
The MPDataProvider declares interface which provides data for data-displaying GUI tool. For work it requires some implementation of VMConnection. The implementation of this interface is provided by MPDataProviderFactory. To work with this interface you should firstly obtain its realization from MPDataProviderFactory, passing it an instance of VMConnection. After this you should connect to a KDP running on hostName:port by calling connect(String hostName, int port) To control VM execution use pauseVM() and resumeVM() funtions. * All other functions provide processed information.
See Also:   com.sun.cldchi.tools.memoryprofiler.data.MPDataProviderFactory
See Also:   com.sun.cldchi.tools.memoryprofiler.jdwp.VMConnection


Field Summary
final public static  intJAVA_OBJECT
    
final public static  intSTACK_OBJECT
    
final public static  intSTATICS_OBJECT
    
final public static  intVM_OBJECT
    


Method Summary
public  ClassStatistics[]calculateStatistics()
     Returns statistics of memory usage for each class in the VM.
public  voidcloseConnections()
     Disconnects from the KDP.
public  voidconnect(String hostName, int port)
     Connects to the KDP running on hostName:port using VMConnection, which should be set before by setConnector(VMConnection connector) call.
public  JavaClass[]getClassList()
     Returns list of all classes in systems.
public  StringgetObjectTypeName(JavaObject obj)
     Returns name of the type of the object.
public  IteratorgetObjects()
     Returns all objects. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful all objects.
public  JavaObject[]getObjectsFromTheAddresses(int start, int end)
     Returns array JavaObjects, sorted by address from given memory block.
public  JavaObject[]getObjectsOfClass(JavaClass jc)
     Returns all objects with given extended class id. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful
Parameters:
  jc - - class which objects you want to find.
public  StringgetStackTrace(JavaObject stackObject, int ptrAddress)
     Returns stacktrace of an address on java stack The provider must be connected to a KDP, see interface description.
public  intget_allocation_top()
     Returns value of _old_generation_end global varaible, which is address where old generation of heap objects ends.
public  intget_heap_start()
     Returns value of _heap_start global varaible, which is address where VM heap starts.
public  intget_heap_top()
     Returns value of _heap_top global varaible, which is address where VM heap ends.
public  intget_old_gen_end()
     Returns value of _old_generation_end global varaible, which is address where old generation of heap objects ends.
public  JavaObject[]pathFromTheRoot(JavaObject obj)
     Returns array of linked JavaObjects, where first one is a root object and last one is the parameter.
public  voidpauseVM()
     Pauses the VM execution.
public  voidresumeVM()
     Resumes the VM execution.

Field Detail
JAVA_OBJECT
final public static int JAVA_OBJECT(Code)



STACK_OBJECT
final public static int STACK_OBJECT(Code)



STATICS_OBJECT
final public static int STATICS_OBJECT(Code)



VM_OBJECT
final public static int VM_OBJECT(Code)





Method Detail
calculateStatistics
public ClassStatistics[] calculateStatistics()(Code)
Returns statistics of memory usage for each class in the VM. There is separate ClassStatistics object int the returned array for each class. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful array of ClassStatistics.
See Also:   MPDataProvider.connect(String hostName,int port)



closeConnections
public void closeConnections()(Code)
Disconnects from the KDP. Does nothing if not connected.



connect
public void connect(String hostName, int port) throws java.net.ConnectException, SocketException(Code)
Connects to the KDP running on hostName:port using VMConnection, which should be set before by setConnector(VMConnection connector) call. It will throw java.net.ConnectException unless connection is successful.
Parameters:
  hostName - - name of host where KDP runs
Parameters:
  port - - number of port where KDP listens
See Also:   MPDataProvider.closeConnections()
See Also:   



getClassList
public JavaClass[] getClassList() throws SocketException(Code)
Returns list of all classes in systems. All objects in array are JavaClass The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful array of JavaClass
See Also:   MPDataProvider.connect(String hostName,int port)



getObjectTypeName
public String getObjectTypeName(JavaObject obj)(Code)
Returns name of the type of the object. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful
Parameters:
  obj - name of the type of the object.
See Also:   MPDataProvider.connect(String hostName,int port)



getObjects
public Iterator getObjects()(Code)
Returns all objects. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful all objects. Iterator returns instances of JavaObject
See Also:   MPDataProvider.connect(String hostName,int port)



getObjectsFromTheAddresses
public JavaObject[] getObjectsFromTheAddresses(int start, int end)(Code)
Returns array JavaObjects, sorted by address from given memory block. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful
Parameters:
  start - - start address of the zone in heap
Parameters:
  end - - end address of the zone in heap array JavaObjects, sorted by address from given memory block.
See Also:   MPDataProvider.connect(String hostName,int port)



getObjectsOfClass
public JavaObject[] getObjectsOfClass(JavaClass jc)(Code)
Returns all objects with given extended class id. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful
Parameters:
  jc - - class which objects you want to find. all objects with given extended class id.
See Also:   MPDataProvider.connect(String hostName,int port)



getStackTrace
public String getStackTrace(JavaObject stackObject, int ptrAddress) throws SocketException(Code)
Returns stacktrace of an address on java stack The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful
Parameters:
  stackObject - - JavaObject of stack type
Parameters:
  ptrAddress - - address of the pointer on stack String.
See Also:   MPDataProvider.connect(String hostName,int port)



get_allocation_top
public int get_allocation_top()(Code)
Returns value of _old_generation_end global varaible, which is address where old generation of heap objects ends. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful value of _old_generation_end global varaible
See Also:   MPDataProvider.connect(String hostName,int port)



get_heap_start
public int get_heap_start()(Code)
Returns value of _heap_start global varaible, which is address where VM heap starts. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful value of _heap_start global varaible
See Also:   MPDataProvider.connect(String hostName,int port)



get_heap_top
public int get_heap_top()(Code)
Returns value of _heap_top global varaible, which is address where VM heap ends. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful value of _heap_top global varaible
See Also:   MPDataProvider.connect(String hostName,int port)



get_old_gen_end
public int get_old_gen_end()(Code)
Returns value of _old_generation_end global varaible, which is address where old generation of heap objects ends. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful value of _old_generation_end global varaible
See Also:   MPDataProvider.connect(String hostName,int port)



pathFromTheRoot
public JavaObject[] pathFromTheRoot(JavaObject obj)(Code)
Returns array of linked JavaObjects, where first one is a root object and last one is the parameter. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful
Parameters:
  obj - array of linked JavaObjects, where first one is a root object and last one is the parameter.
See Also:   MPDataProvider.connect(String hostName,int port)



pauseVM
public void pauseVM() throws SocketException(Code)
Pauses the VM execution. The provider must be connected to a kdp, see interface description. The function will throw SocketException unless communication with VM is successful
See Also:   MPDataProvider.connect(String hostName,int port)



resumeVM
public void resumeVM() throws SocketException(Code)
Resumes the VM execution. The provider must be connected to a KDP, see interface description. The function will throw SocketException unless communication with VM is successful
See Also:   MPDataProvider.connect(String hostName,int port)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.