author | mchung |
Tue, 17 Jan 2012 15:55:40 -0800 | |
changeset 11530 | a9d059c15b80 |
parent 9698 | 8b66cd6c5ebc |
child 14342 | 8435a30053c1 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
2 |
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package sun.management; |
|
27 |
||
28 |
import com.sun.management.GarbageCollectorMXBean; |
|
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
29 |
import com.sun.management.GarbageCollectionNotificationInfo; |
2 | 30 |
import java.lang.management.ManagementFactory; |
31 |
import java.lang.management.MemoryPoolMXBean; |
|
32 |
import java.lang.management.MemoryUsage; |
|
33 |
||
34 |
import com.sun.management.GcInfo; |
|
35 |
import javax.management.openmbean.CompositeData; |
|
36 |
import javax.management.MBeanInfo; |
|
37 |
import javax.management.MBeanAttributeInfo; |
|
401
ef01e0dccd63
6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents:
2
diff
changeset
|
38 |
import javax.management.ObjectName; |
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
39 |
import javax.management.MBeanNotificationInfo; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
40 |
import javax.management.Notification; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
41 |
import javax.management.NotificationFilter; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
42 |
import javax.management.NotificationListener; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
43 |
import javax.management.ListenerNotFoundException; |
2 | 44 |
|
45 |
import java.util.List; |
|
46 |
import java.util.ListIterator; |
|
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
47 |
import java.util.Map; |
2 | 48 |
|
49 |
/** |
|
50 |
* Implementation class for the garbage collector. |
|
51 |
* Standard and committed hotspot-specific metrics if any. |
|
52 |
* |
|
53 |
* ManagementFactory.getGarbageCollectorMXBeans() returns a list |
|
54 |
* of instances of this class. |
|
55 |
*/ |
|
56 |
class GarbageCollectorImpl extends MemoryManagerImpl |
|
57 |
implements GarbageCollectorMXBean { |
|
58 |
||
59 |
GarbageCollectorImpl(String name) { |
|
60 |
super(name); |
|
61 |
} |
|
62 |
||
63 |
public native long getCollectionCount(); |
|
64 |
public native long getCollectionTime(); |
|
65 |
||
66 |
||
67 |
// The memory pools are static and won't be changed. |
|
68 |
// TODO: If the hotspot implementation begins to have pools |
|
69 |
// dynamically created and removed, this needs to be modified. |
|
70 |
private String[] poolNames = null; |
|
71 |
synchronized String[] getAllPoolNames() { |
|
72 |
if (poolNames == null) { |
|
11530
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
9698
diff
changeset
|
73 |
List<MemoryPoolMXBean> pools = ManagementFactory.getMemoryPoolMXBeans(); |
2 | 74 |
poolNames = new String[pools.size()]; |
75 |
int i = 0; |
|
11530
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
9698
diff
changeset
|
76 |
for (MemoryPoolMXBean m : pools) { |
a9d059c15b80
7117570: Warnings in sun.mangement.* and its subpackages
mchung
parents:
9698
diff
changeset
|
77 |
poolNames[i++] = m.getName(); |
2 | 78 |
} |
79 |
} |
|
80 |
return poolNames; |
|
81 |
} |
|
82 |
||
83 |
// Sun JDK extension |
|
84 |
private GcInfoBuilder gcInfoBuilder; |
|
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
85 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
86 |
private synchronized GcInfoBuilder getGcInfoBuilder() { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
87 |
if(gcInfoBuilder == null) { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
88 |
gcInfoBuilder = new GcInfoBuilder(this, getAllPoolNames()); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
89 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
90 |
return gcInfoBuilder; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
91 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
92 |
|
2 | 93 |
public GcInfo getLastGcInfo() { |
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
94 |
GcInfo info = getGcInfoBuilder().getLastGcInfo(); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
95 |
return info; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
96 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
97 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
98 |
private final static String notifName = |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
99 |
"javax.management.Notification"; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
100 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
101 |
private final static String[] gcNotifTypes = { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
102 |
GarbageCollectionNotificationInfo.GARBAGE_COLLECTION_NOTIFICATION |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
103 |
}; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
104 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
105 |
private MBeanNotificationInfo[] notifInfo = null; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
106 |
public MBeanNotificationInfo[] getNotificationInfo() { |
2 | 107 |
synchronized (this) { |
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
108 |
if (notifInfo == null) { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
109 |
notifInfo = new MBeanNotificationInfo[1]; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
110 |
notifInfo[0] = new MBeanNotificationInfo(gcNotifTypes, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
111 |
notifName, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
112 |
"GC Notification"); |
2 | 113 |
} |
114 |
} |
|
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
115 |
return notifInfo; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
116 |
} |
2 | 117 |
|
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
118 |
private static long seqNumber = 0; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
119 |
private static long getNextSeqNumber() { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
120 |
return ++seqNumber; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
121 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
122 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
123 |
void createGCNotification(long timestamp, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
124 |
String gcName, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
125 |
String gcAction, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
126 |
String gcCause, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
127 |
GcInfo gcInfo) { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
128 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
129 |
if (!hasListeners()) { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
130 |
return; |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
131 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
132 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
133 |
Notification notif = new Notification(GarbageCollectionNotificationInfo.GARBAGE_COLLECTION_NOTIFICATION, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
134 |
getObjectName(), |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
135 |
getNextSeqNumber(), |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
136 |
timestamp, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
137 |
gcName); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
138 |
GarbageCollectionNotificationInfo info = |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
139 |
new GarbageCollectionNotificationInfo(gcName, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
140 |
gcAction, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
141 |
gcCause, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
142 |
gcInfo); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
143 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
144 |
CompositeData cd = |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
145 |
GarbageCollectionNotifInfoCompositeData.toCompositeData(info); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
146 |
notif.setUserData(cd); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
147 |
sendNotification(notif); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
148 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
149 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
150 |
public synchronized void addNotificationListener(NotificationListener listener, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
151 |
NotificationFilter filter, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
152 |
Object handback) |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
153 |
{ |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
154 |
boolean before = hasListeners(); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
155 |
super.addNotificationListener(listener, filter, handback); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
156 |
boolean after = hasListeners(); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
157 |
if (!before && after) { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
158 |
setNotificationEnabled(this, true); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
159 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
160 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
161 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
162 |
public synchronized void removeNotificationListener(NotificationListener listener) |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
163 |
throws ListenerNotFoundException { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
164 |
boolean before = hasListeners(); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
165 |
super.removeNotificationListener(listener); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
166 |
boolean after = hasListeners(); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
167 |
if (before && !after) { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
168 |
setNotificationEnabled(this,false); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
169 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
170 |
} |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
171 |
|
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
172 |
public synchronized void removeNotificationListener(NotificationListener listener, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
173 |
NotificationFilter filter, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
174 |
Object handback) |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
175 |
throws ListenerNotFoundException |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
176 |
{ |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
177 |
boolean before = hasListeners(); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
178 |
super.removeNotificationListener(listener,filter,handback); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
179 |
boolean after = hasListeners(); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
180 |
if (before && !after) { |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
181 |
setNotificationEnabled(this,false); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
182 |
} |
2 | 183 |
} |
184 |
||
401
ef01e0dccd63
6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents:
2
diff
changeset
|
185 |
public ObjectName getObjectName() { |
ef01e0dccd63
6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents:
2
diff
changeset
|
186 |
return Util.newObjectName(ManagementFactory.GARBAGE_COLLECTOR_MXBEAN_DOMAIN_TYPE, getName()); |
ef01e0dccd63
6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents:
2
diff
changeset
|
187 |
} |
ef01e0dccd63
6610094: Add generic support for platform MXBeans of any type (also fixed 6681031)
mchung
parents:
2
diff
changeset
|
188 |
|
9698
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
189 |
native void setNotificationEnabled(GarbageCollectorMXBean gc, |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
190 |
boolean enabled); |
8b66cd6c5ebc
7036199: Adding a notification to the implementation of GarbageCollectorMXBeans
fparain
parents:
5506
diff
changeset
|
191 |
|
2 | 192 |
} |