
public class SolarisAttachProvider extends HotSpotAttachProvider
| Constructor and Description |
|---|
SolarisAttachProvider() |
| Modifier and Type | Method and Description |
|---|---|
VirtualMachine |
attachVirtualMachine(String vmid)
Attaches to a Java virtual machine.
|
VirtualMachine |
attachVirtualMachine(VirtualMachineDescriptor vmd)
Attaches to a Java virtual machine.
|
String |
name()
Return this provider's name.
|
String |
type()
Return this provider's type.
|
checkAttachPermission, listVirtualMachinesproviderspublic 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 VirtualMachine attachVirtualMachine(VirtualMachineDescriptor vmd) throws AttachNotSupportedException, IOException
AttachProvider A Java virtual machine can be described using a VirtualMachineDescriptor.
This method invokes the descriptor's provider() method
to check that it is equal to this provider. It then attempts to attach to the
Java virtual machine.
attachVirtualMachine in class AttachProvidervmd - The virtual machine descriptorAttachNotSupportedException - If the descriptor's provider() method
returns a provider that is not this provider, or it does not correspond
to a Java virtual machine to which this provider can attach.IOException - If some other I/O error occursCopyright © 2017–2018 earcam. All rights reserved.