Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.attach.jmod - Attach Module
JDK 11 jdk.attach.jmod is the JMOD file for JDK 11 Attach module.
JDK 11 Attach module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.attach.jmod.
JDK 11 Attach module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Attach module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.attach.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/attach/VirtualMachineDescriptor.java
/* * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.attach; import com.sun.tools.attach.spi.AttachProvider; /** * Describes a Java virtual machine. * * <p> A {@code VirtualMachineDescriptor} is a container class used to * describe a Java virtual machine. It encapsulates an identifier that identifies * a target virtual machine, and a reference to the {@link * com.sun.tools.attach.spi.AttachProvider AttachProvider} that should be used * when attempting to attach to the virtual machine. The identifier is * implementation-dependent but is typically the process identifier (or pid) * environments where each Java virtual machine runs in its own operating system * process. </p> * * <p> A {@code VirtualMachineDescriptor} also has a {@link #displayName() displayName}. * The display name is typically a human readable string that a tool might * display to a user. For example, a tool that shows a list of Java * virtual machines running on a system might use the display name rather * than the identifier. A {@code VirtualMachineDescriptor} may be * created without a <i>display name</i>. In that case the identifier is * used as the <i>display name</i>. * * <p> {@code VirtualMachineDescriptor} instances are typically created by * invoking the {@link com.sun.tools.attach.VirtualMachine#list VirtualMachine.list()} * method. This returns the complete list of descriptors to describe the * Java virtual machines known to all installed {@link * com.sun.tools.attach.spi.AttachProvider attach providers}. * * @since 1.6 */ public class VirtualMachineDescriptor { private AttachProvider provider; private String id; private String displayName; private volatile int hash; // 0 => not computed /** * Creates a virtual machine descriptor from the given components. * * @param provider The AttachProvider to attach to the Java virtual machine. * @param id The virtual machine identifier. * @param displayName The display name. * * @throws NullPointerException * If any of the arguments are {@code null} */ public VirtualMachineDescriptor(AttachProvider provider, String id, String displayName) { if (provider == null) { throw new NullPointerException("provider cannot be null"); } if (id == null) { throw new NullPointerException("identifier cannot be null"); } if (displayName == null) { throw new NullPointerException("display name cannot be null"); } this.provider = provider; this.id = id; this.displayName = displayName; } /** * Creates a virtual machine descriptor from the given components. * * <p> This convenience constructor works as if by invoking the * three-argument constructor as follows: * * <blockquote><code> * new {@link #VirtualMachineDescriptor(AttachProvider, String, String) * VirtualMachineDescriptor}(provider, id, id); * </code></blockquote> * * <p> That is, it creates a virtual machine descriptor such that * the <i>display name</i> is the same as the virtual machine * identifier. * * @param provider The AttachProvider to attach to the Java virtual machine. * @param id The virtual machine identifier. * * @throws NullPointerException * If {@code provider} or {@code id} is {@code null}. */ public VirtualMachineDescriptor(AttachProvider provider, String id) { this(provider, id, id); } /** * Return the {@code AttachProvider} that this descriptor references. * * @return The {@code AttachProvider} that this descriptor references. */ public AttachProvider provider() { return provider; } /** * Return the identifier component of this descriptor. * * @return The identifier component of this descriptor. */ public String id() { return id; } /** * Return the <i>display name</i> component of this descriptor. * * @return The display name component of this descriptor. */ public String displayName() { return displayName; } /** * Returns a hash-code value for this VirtualMachineDescriptor. The hash * code is based upon the descriptor's components, and satifies * the general contract of the {@link java.lang.Object#hashCode() * Object.hashCode} method. * * @return A hash-code value for this descriptor. */ public int hashCode() { if (hash != 0) { return hash; } hash = provider.hashCode() * 127 + id.hashCode(); return hash; } /** * Tests this VirtualMachineDescriptor for equality with another object. * * <p> If the given object is not a VirtualMachineDescriptor then this * method returns {@code false}. For two VirtualMachineDescriptors to * be considered equal requires that they both reference the same * provider, and their {@link #id() identifiers} are equal. </p> * * <p> This method satisfies the general contract of the {@link * java.lang.Object#equals(Object) Object.equals} method. </p> * * @param ob The object to which this object is to be compared * * @return {@code true} if, and only if, the given object is * a VirtualMachineDescriptor that is equal to this * VirtualMachineDescriptor. */ public boolean equals(Object ob) { if (ob == this) return true; if (!(ob instanceof VirtualMachineDescriptor)) return false; VirtualMachineDescriptor other = (VirtualMachineDescriptor)ob; if (other.provider() != this.provider()) { return false; } if (!other.id().equals(this.id())) { return false; } return true; } /** * Returns the string representation of the {@code VirtualMachineDescriptor}. */ public String toString() { String s = provider.toString() + ": " + id; if (displayName != id) { s += " " + displayName; } return s; } }
⏎ com/sun/tools/attach/VirtualMachineDescriptor.java
Or download all of them as a single archive file:
File name: jdk.attach-11.0.1-src.zip File size: 27192 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.charsets.jmod - Charsets Module
2020-08-13, 7823👍, 0💬
Popular Posts:
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
maven-model-builder-3.8. 6.jaris the JAR file for Apache Maven 3.8.6 Model Builder module. Apache Ma...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...