
public class WindowsAttachProvider extends HotSpotAttachProvider
| Constructor and Description |
|---|
WindowsAttachProvider() |
| Modifier and Type | Method and Description |
|---|---|
VirtualMachine |
attachVirtualMachine(String vmid)
Attaches to a Java virtual machine.
|
List<VirtualMachineDescriptor> |
listVirtualMachines()
Lists the Java virtual machines known to this provider.
|
String |
name()
Return this provider's name.
|
String |
type()
Return this provider's type.
|
checkAttachPermissionattachVirtualMachine, providerspublic String name()
AttachProvidername in class AttachProviderpublic String type()
AttachProvidertype in class AttachProviderpublic VirtualMachine attachVirtualMachine(String vmid) throws AttachNotSupportedException, IOException
AttachProviderA Java virtual machine is identified by an abstract identifier. The nature of this identifier is platform dependent but in many cases it will be the string representation of the process identifier (or pid).
This method parses the identifier and maps the identifier to a Java
virtual machine (in an implementation dependent manner). If the identifier
cannot be parsed by the provider then an AttachNotSupportedException
is thrown. Once parsed this method attempts to attach to the Java virtual machine.
If the provider detects that the identifier corresponds to a Java virtual machine
that does not exist, or it corresponds to a Java virtual machine that does not support
the attach mechanism implemented by this provider, or it detects that the
Java virtual machine is a version to which this provider cannot attach, then
an AttachNotSupportedException is thrown.
attachVirtualMachine in class AttachProvidervmid - The abstract identifier that identifies the Java virtual machine.AttachNotSupportedException - If the identifier cannot be parsed, or it corresponds to
to a Java virtual machine that does not exist, or it
corresponds to a Java virtual machine which this
provider cannot attach.IOException - If some other I/O error occurspublic List<VirtualMachineDescriptor> listVirtualMachines()
AttachProvider This method returns a list of VirtualMachineDescriptor elements. Each
VirtualMachineDescriptor describes a Java virtual machine
to which this provider can potentially attach. There isn't any
guarantee that invoking attachVirtualMachine on each descriptor in the list will succeed.
listVirtualMachines in class HotSpotAttachProviderCopyright © 2017–2018 earcam. All rights reserved.