summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-07-22 13:36:00 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-07-22 13:36:00 +0000
commit3969710e16d48d5a73780d821a587a1ff4b6fbe7 (patch)
treec8f9c56149146cbe69c8af8f74fa7b21daa97a14 /doc
parentedd158cb9d6e59fdfc276b1e26318e337a63b2a9 (diff)
downloadclasspath-3969710e16d48d5a73780d821a587a1ff4b6fbe7.tar.gz
2006-07-22 Andrew John Hughes <gnu_andrew@member.fsf.org>
* doc/vmintegration.texinfo: Mention callback methods. * gnu/java/lang/management/MemoryMXBeanImpl.java: (fireNotification(String,String,long,long,long,long,long)): Made package-private. (fireThresholdExceededNotification(String,long,long,long, long,long)): Likewise. (fireCollectionThresholdExceededNotification(String,long, long,long,long,long)): Likewise. * java/lang/management/MemoryMXBean.java: Document notifications.
Diffstat (limited to 'doc')
-rw-r--r--doc/vmintegration.texinfo19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/vmintegration.texinfo b/doc/vmintegration.texinfo
index bd7464e49..d6f327310 100644
--- a/doc/vmintegration.texinfo
+++ b/doc/vmintegration.texinfo
@@ -1651,6 +1651,25 @@ the group.
Call this method from @code{Thread} when a @code{Thread} is stopped or destroyed.
@end itemize
+@item @code{gnu.java.lang.management.MemoryMXBeanImpl.fireThresholdExceededNotification(String, long, long, long, long)}
+If the monitoring of memory usage thresholds is supported, this method
+should be called when the normal usage of a memory pool crosses the
+threshold, in order to emit a notification. Another notification
+should not be emitted until there is an intermittent period where the
+usage is again below the threshold. The parameters are the memory
+pool name, the usage levels (init, used, committed and max) and the
+number of times the threshold has been crossed.
+
+@item @code{gnu.java.lang.management.MemoryMXBeanImpl.fireCollectionThresholdExceededNotification(String, long, long, long, long)}
+If the monitoring of memory usage thresholds is supported, this method
+should be called when the usage of a memory pool after a garbage
+collection cycle crosses the threshold, in order to emit a
+notification. Another notification should not be emitted until there
+is an intermittent period where the usage is again below the
+threshold. The parameters are the memory pool name, the usage levels
+(init, used, committed and max) and the number of times the threshold
+has been crossed.
+
@node VM Hooks, JNI Implementation, Classpath Hooks, Top
@comment node-name, next, previous, up
@chapter VM Hooks