APIdia Launch Partner
Top Inners Constructors Methods
sun.tools.attach

public abstract Class HotSpotAttachProvider

extends AttachProvider
Class Inheritance
Known Direct Subclasses
sun.tools.attach.AttachProviderImpl
Imports
com.sun.tools.attach.VirtualMachineDescriptor, .AttachNotSupportedException, com.sun.tools.attach.spi.AttachProvider, java.util.List, .ArrayList, .Set, sun.jvmstat.monitor.HostIdentifier, .MonitoredHost, .MonitoredVm, .MonitoredVmUtil, .VmIdentifier

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
HotSpotAttachProvider.HotSpotVirtualMachineDescriptor

A virtual machine descriptor to describe a HotSpot virtual machine.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<VirtualMachineDescriptor>
listVirtualMachines()

Implements abstract com.sun.tools.attach.spi.AttachProvider.listVirtualMachines.

Lists the Java virtual machines known to this provider.

pack-priv void
testAttachable(String id)

Test if a VM is attachable.

Inherited from com.sun.tools.attach.spi.AttachProvider:
attachVirtualMachineattachVirtualMachinenameproviderstype

Constructor Detail

HotSpotAttachProviderback to summary
public HotSpotAttachProvider()

Method Detail

listVirtualMachinesback to summary
public List<VirtualMachineDescriptor> listVirtualMachines()

Implements abstract com.sun.tools.attach.spi.AttachProvider.listVirtualMachines.

Doc from com.sun.tools.attach.spi.AttachProvider.listVirtualMachines.

Lists the Java virtual machines known to this provider.

This method returns a list of com.sun.tools.attach.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.

testAttachableback to summary
pack-priv void testAttachable(String id) throws AttachNotSupportedException

Test if a VM is attachable. If it's not attachable, an AttachNotSupportedException will be thrown. For example, 1.4.2 or 5.0 VM are not attachable. There are cases that we can't determine if a VM is attachable or not and this method will just return. This method uses the jvmstat counter to determine if a VM is attachable. If the target VM does not have a jvmstat share memory buffer, this method returns.

Exceptions
AttachNotSupportedException:
if it's not attachable
sun.tools.attach back to summary

pack-priv Class HotSpotAttachProvider.HotSpotVirtualMachineDescriptor

extends VirtualMachineDescriptor
Class Inheritance

A virtual machine descriptor to describe a HotSpot virtual machine.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from com.sun.tools.attach.VirtualMachineDescriptor:
displayNameequalshashCodeidprovidertoString

Constructor Detail

HotSpotVirtualMachineDescriptorback to summary
pack-priv HotSpotVirtualMachineDescriptor(AttachProvider provider, String id, String displayName)

Method Detail

isAttachableback to summary
public boolean isAttachable()