Java Doc for MemoryPoolMXBean.java in  » Apache-Harmony-Java-SE » java-package » java » lang » management » 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 » Apache Harmony Java SE » java package » java.lang.management 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.management.MemoryPoolMXBean

MemoryPoolMXBean
public interface MemoryPoolMXBean (Code)

MemoryPoolMXBean is an interface used by the management system to access memory pool properties.

ObjectName pattern: java.lang:type=MemoryPool,name=pool_name


since:
   1.5




Method Summary
 MemoryUsagegetCollectionUsage()
    

The memory usage of the JVM's most recent attempt to recycle unused objects in this pool.

 longgetCollectionUsageThreshold()
    

The collection usage threshold (in bytes) of this pool; the default is zero.

 longgetCollectionUsageThresholdCount()
    

The number of times the collection usage threshold has been reached or exceeded.

 String[]getMemoryManagerNames()
    

The names of the memory managers that manage this pool; there will be at least one memory manager for each pool.

 StringgetName()
    

The name of this memory pool.

 MemoryUsagegetPeakUsage()
    

The peak memory usage of this pool since JVM startup or since the last reset of the peak.

 MemoryTypegetType()
    

The memory type of this pool.

 MemoryUsagegetUsage()
    

The approximate, current memory usage of this pool.

 longgetUsageThreshold()
    

The current usage threshold (in bytes) of this pool.

 longgetUsageThresholdCount()
    

The number of times the usage threshold has been met or exceeded.

 booleanisCollectionUsageThresholdExceeded()
    

Indicates whether or not the collection usage threshold has been met or exceeded after the most recent collection.

 booleanisCollectionUsageThresholdSupported()
    

Indicates whether or not this pool supports collection threshold monitoring.

 booleanisUsageThresholdExceeded()
    

Indicates whether or not the usage threshold is currently met or exceeded.

 booleanisUsageThresholdSupported()
    

Indicates whether or not usage threshold monitoring is supported.

 booleanisValid()
    

Indicates whether or not the pool is currently valid.

 voidresetPeakUsage()
    

Resets the peak memory usage to the current value.

 voidsetCollectionUsageThreshold(long threshold)
    

Sets the collection usage threshold (in bytes) for this memory pool.

 voidsetUsageThreshold(long threshold)
    

Sets the usage threshold (in bytes) for this memory pool.




Method Detail
getCollectionUsage
MemoryUsage getCollectionUsage()(Code)

The memory usage of the JVM's most recent attempt to recycle unused objects in this pool. If this feature is not supported, then null will be returned.

A MemoryUsage instance representing the most recentattempt to recycle unused objects; null may bereturned to indicated this method is not supported.



getCollectionUsageThreshold
long getCollectionUsageThreshold()(Code)

The collection usage threshold (in bytes) of this pool; the default is zero.

The collection usage threshold value.
throws:
  UnsupportedOperationException - if this is not supported.
See Also:   MemoryPoolMXBean.isCollectionUsageThresholdSupported()



getCollectionUsageThresholdCount
long getCollectionUsageThresholdCount()(Code)

The number of times the collection usage threshold has been reached or exceeded.

The number of times the collection usage threshold has beenreached or exceeded.
throws:
  UnsupportedOperationException - if this is not supported.
See Also:   MemoryPoolMXBean.isCollectionUsageThresholdSupported()



getMemoryManagerNames
String[] getMemoryManagerNames()(Code)

The names of the memory managers that manage this pool; there will be at least one memory manager for each pool.

A String[] of memory manager names.



getName
String getName()(Code)

The name of this memory pool.

The name of this memory pool.



getPeakUsage
MemoryUsage getPeakUsage()(Code)

The peak memory usage of this pool since JVM startup or since the last reset of the peak.

A MemoryUsage instance representing the peak usage.
See Also:   MemoryPoolMXBean.resetPeakUsage()



getType
MemoryType getType()(Code)

The memory type of this pool.

The pool's memory type.



getUsage
MemoryUsage getUsage()(Code)

The approximate, current memory usage of this pool. This method will return null if the pool is invalid.

A MemoryUsage instance representing the current usage ornull if the pool is invalid.



getUsageThreshold
long getUsageThreshold()(Code)

The current usage threshold (in bytes) of this pool.

The current usage threshold.
throws:
  UnsupportedOperationException - if this is not supported.
See Also:   MemoryPoolMXBean.isUsageThresholdSupported()



getUsageThresholdCount
long getUsageThresholdCount()(Code)

The number of times the usage threshold has been met or exceeded.

The number of times the usage threshold has been met or exceeded.
throws:
  UnsupportedOperationException - if this is not supported.
See Also:   MemoryPoolMXBean.isUsageThresholdSupported()



isCollectionUsageThresholdExceeded
boolean isCollectionUsageThresholdExceeded()(Code)

Indicates whether or not the collection usage threshold has been met or exceeded after the most recent collection.

true if the collection usage threshold was met orexceeded, otherwise false.
throws:
  UnsupportedOperationException - if this is not supported.
See Also:   MemoryPoolMXBean.isCollectionUsageThresholdSupported()



isCollectionUsageThresholdSupported
boolean isCollectionUsageThresholdSupported()(Code)

Indicates whether or not this pool supports collection threshold monitoring.

true if supported, false otherwise.



isUsageThresholdExceeded
boolean isUsageThresholdExceeded()(Code)

Indicates whether or not the usage threshold is currently met or exceeded.

true if the usage threshold is met or exceeded,otherwise false.
throws:
  UnsupportedOperationException - if this is not supported.
See Also:   MemoryPoolMXBean.isUsageThresholdSupported()



isUsageThresholdSupported
boolean isUsageThresholdSupported()(Code)

Indicates whether or not usage threshold monitoring is supported.

true if supported, otherwise false.



isValid
boolean isValid()(Code)

Indicates whether or not the pool is currently valid. A memory pool may be removed by a JVM and become invalid.

true if the pool is valid, falseotherwise.



resetPeakUsage
void resetPeakUsage()(Code)

Resets the peak memory usage to the current value.


throws:
  SecurityException - if caller doesn't haveManagementPermission("control").



setCollectionUsageThreshold
void setCollectionUsageThreshold(long threshold)(Code)

Sets the collection usage threshold (in bytes) for this memory pool.


Parameters:
  threshold - The new, non-negative threshold.
throws:
  IllegalArgumentException - if the new threshold is either negativeor greater than the maximum memory allowed.
throws:
  UnsupportedOperationException - if this is not supported.
throws:
  SecurityException - if caller doesn't haveManagementPermission("control").



setUsageThreshold
void setUsageThreshold(long threshold)(Code)

Sets the usage threshold (in bytes) for this memory pool.


Parameters:
  threshold - The new, non-negative threshold.
throws:
  IllegalArgumentException - if the new threshold is either negativeor greater than the maximum memory allowed.
throws:
  UnsupportedOperationException - if this is not supported.
throws:
  SecurityException - if caller doesn't haveManagementPermission("control").



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