public abstract static class ByteBuddyAgent.AttachmentProvider.Accessor.Simple extends Object implements ByteBuddyAgent.AttachmentProvider.Accessor
Modifier and Type | Class and Description |
---|---|
protected static class |
ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithDirectAttachment
A simple implementation of an accessible accessor that attaches using a virtual machine emulation that does not require external attachment.
|
protected static class |
ByteBuddyAgent.AttachmentProvider.Accessor.Simple.WithExternalAttachment
A simple implementation of an accessible accessor that allows for external attachment.
|
ByteBuddyAgent.AttachmentProvider.Accessor.ExternalAttachment, ByteBuddyAgent.AttachmentProvider.Accessor.Simple, ByteBuddyAgent.AttachmentProvider.Accessor.Unavailable
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
virtualMachineType
A
VirtualMachine class. |
VIRTUAL_MACHINE_TYPE_NAME, VIRTUAL_MACHINE_TYPE_NAME_J9
Modifier | Constructor and Description |
---|---|
protected |
Simple(Class<?> virtualMachineType)
Creates a new simple accessor.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getVirtualMachineType()
Returns a
VirtualMachine class. |
boolean |
isAvailable()
Determines if this accessor is applicable for the currently running JVM.
|
static ByteBuddyAgent.AttachmentProvider.Accessor |
of(ClassLoader classLoader,
File... classPath)
Creates an accessor by reading the process id from the JMX runtime bean and by attempting
to load the
com.sun.tools.attach.VirtualMachine class from the provided class loader. |
static ByteBuddyAgent.AttachmentProvider.Accessor |
ofJ9()
Creates an accessor by reading the process id from the JMX runtime bean and by attempting
to load the
com.ibm.tools.attach.VirtualMachine class from the provided class loader. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExternalAttachment, isExternalAttachmentRequired
protected final Class<?> virtualMachineType
VirtualMachine
class.protected Simple(Class<?> virtualMachineType)
virtualMachineType
- A VirtualMachine
class.public static ByteBuddyAgent.AttachmentProvider.Accessor of(@MaybeNull ClassLoader classLoader, File... classPath)
Creates an accessor by reading the process id from the JMX runtime bean and by attempting
to load the com.sun.tools.attach.VirtualMachine
class from the provided class loader.
This accessor is supposed to work on any implementation of the OpenJDK or Oracle JDK.
classLoader
- A class loader that is capable of loading the virtual machine type.classPath
- The class path required to load the virtual machine class.public static ByteBuddyAgent.AttachmentProvider.Accessor ofJ9()
Creates an accessor by reading the process id from the JMX runtime bean and by attempting
to load the com.ibm.tools.attach.VirtualMachine
class from the provided class loader.
This accessor is supposed to work on any implementation of IBM's J9.
public boolean isAvailable()
isAvailable
in interface ByteBuddyAgent.AttachmentProvider.Accessor
true
if this accessor is available.public Class<?> getVirtualMachineType()
VirtualMachine
class. This method must only be called for available accessors.getVirtualMachineType
in interface ByteBuddyAgent.AttachmentProvider.Accessor
Copyright © 2014–2024. All rights reserved.