/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package sun.management;
/**
* Implementation class for the memory subsystem.
* Standard and committed hotspot-specific metrics if any.
*
* ManagementFactory.getMemoryMXBean() returns an instance
* of this class.
*/
implements MemoryMXBean {
/**
* Constructor of MemoryImpl class
*/
}
public int getObjectPendingFinalizationCount() {
}
public void gc() {
}
// Need to make a VM call to get coherent value
return getMemoryUsage0(true);
}
return getMemoryUsage0(false);
}
public boolean isVerbose() {
return jvm.getVerboseGC();
}
}
// The current Hotspot implementation does not support
// dynamically add or remove memory pools & managers.
pools = getMemoryPools0();
}
return pools;
}
mgrs = getMemoryManagers0();
}
return mgrs;
}
"javax.management.Notification";
};
"Memory usage exceeds usage threshold",
"Memory usage exceeds collection usage threshold"
};
synchronized (this) {
"Memory Notification");
}
}
return notifInfo;
}
if (notifType == notifTypes[i]) {
return notifMsgs[i];
}
}
return "Unknown message";
}
private static long getNextSeqNumber() {
return ++seqNumber;
}
long count) {
if (!mbean.hasListeners()) {
// if no listener is registered.
return;
}
msg);
count);
}
}
}