Categories:
Audio (13)
Biotech (29)
Bytecode (22)
Database (79)
Framework (7)
Game (7)
General (497)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (70)
JavaBeans (16)
JDBC (86)
JDK (338)
JSP (20)
Logging (90)
Mail (54)
Messaging (8)
Network (106)
PDF (82)
Report (7)
Scripting (75)
Security (67)
Server (112)
Servlet (17)
SOAP (24)
Testing (55)
Web (24)
XML (287)
Other Resources:
JDK 11 jdk.internal.jvmstat.jmod - Internal JVM Stat Module
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module.
JDK 11 Internal JVM Stat module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.internal.jvmstat.jmod.
JDK 11 Internal JVM Stat module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Internal JVM Stat module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.internal.jvmstat.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/jvmstat/perfdata/monitor/protocol/local/LocalMonitoredVm.java
/* * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.jvmstat.perfdata.monitor.protocol.local; import java.util.*; import java.lang.reflect.*; import java.io.*; import sun.jvmstat.monitor.*; import sun.jvmstat.monitor.event.*; import sun.jvmstat.perfdata.monitor.*; /** * Concrete implementation of the AbstractMonitoredVm class for the * <em>local:</em> protocol for the HotSpot PerfData monitoring implementation. * <p> * This class provides the ability to attach to the instrumentation buffer * of a live target Java Virtual Machine through a HotSpot specific attach * mechanism. * * @author Brian Doherty * @since 1.5 */ public class LocalMonitoredVm extends AbstractMonitoredVm { /** * List of registered listeners. */ private ArrayList<VmListener> listeners; /** * Task performing listener notification. */ private NotifierTask task; /** * Create a LocalMonitoredVm instance. * * @param vmid the vm identifier specifying the target JVM * @param interval the sampling interval */ public LocalMonitoredVm(VmIdentifier vmid, int interval) throws MonitorException { super(vmid, interval); this.pdb = new PerfDataBuffer(vmid); listeners = new ArrayList<VmListener>(); } /** * {@inheritDoc}. */ public void detach() { if (interval > 0) { /* * if the notifier task is running, stop it, otherwise it can * access non-existent memory once we've detached from the * underlying buffer. */ if (task != null) { task.cancel(); task = null; } } super.detach(); } /** * {@inheritDoc}. */ public void addVmListener(VmListener l) { synchronized(listeners) { listeners.add(l); if (task == null) { task = new NotifierTask(); LocalEventTimer timer = LocalEventTimer.getInstance(); timer.schedule(task, interval, interval); } } } /** * {@inheritDoc}. */ public void removeVmListener(VmListener l) { synchronized(listeners) { listeners.remove(l); if (listeners.isEmpty() && task != null) { task.cancel(); task = null; } } } /** * {@inheritDoc}. */ public void setInterval(int newInterval) { synchronized(listeners) { if (newInterval == interval) { return; } int oldInterval = interval; super.setInterval(newInterval); if (task != null) { task.cancel(); NotifierTask oldTask = task; task = new NotifierTask(); LocalEventTimer timer = LocalEventTimer.getInstance(); CountedTimerTaskUtils.reschedule(timer, oldTask, task, oldInterval, newInterval); } } } /** * Fire MonitoredVmStructureChanged events. * * @param inserted List of Monitor objects inserted. * @param removed List of Monitor objects removed. */ @SuppressWarnings("unchecked") // Cast of result of clone void fireMonitorStatusChangedEvents(List<Monitor> inserted, List<Monitor> removed) { MonitorStatusChangeEvent ev = null; ArrayList<VmListener> registered = null; synchronized (listeners) { registered = (ArrayList)listeners.clone(); } for (Iterator<VmListener> i = registered.iterator(); i.hasNext(); /* empty */) { VmListener l = i.next(); // lazily create the event object; if (ev == null) { ev = new MonitorStatusChangeEvent(this, inserted, removed); } l.monitorStatusChanged(ev); } } /** * Fire MonitoredUpdated events. */ void fireMonitorsUpdatedEvents() { VmEvent ev = null; ArrayList<VmListener> registered = null; synchronized (listeners) { registered = cast(listeners.clone()); } for (VmListener l : registered) { // lazily create the event object; if (ev == null) { ev = new VmEvent(this); } l.monitorsUpdated(ev); } } /** * Class to notify listeners of Monitor related events for * the target JVM. */ private class NotifierTask extends CountedTimerTask { public void run() { super.run(); try { MonitorStatus status = getMonitorStatus(); List<Monitor> inserted = status.getInserted(); List<Monitor> removed = status.getRemoved(); if (!inserted.isEmpty() || !removed.isEmpty()) { fireMonitorStatusChangedEvents(inserted, removed); } fireMonitorsUpdatedEvents(); } catch (MonitorException e) { // XXX: use logging api System.err.println("Exception updating monitors for " + getVmIdentifier()); e.printStackTrace(); } } } // Suppress unchecked cast warning msg. @SuppressWarnings("unchecked") static <T> T cast(Object x) { return (T) x; } }
⏎ sun/jvmstat/perfdata/monitor/protocol/local/LocalMonitoredVm.java
⇒ JDK 11 jdk.internal.le.jmod - Internal Line Editing Module
2018-11-09, 2041👍, 0💬
Popular Posts:
The JSR 105 XML Digital Signature 1.0.1 FCS implementation provides an API and implementation that a...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.1? The if you...
What Is mail.jar of JavaMail 1.4.1? I got the JAR file from javamail-1_4_1.zip. mail.jar in javamail...
What Is commons-fileupload-1.3.3 .jar?commons-fileupload-1.3.3 .jaris the JAR file for Apache Common...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...