public static class ByteBuddyAgent.AttachmentProvider.Accessor.Simple extends Object implements ByteBuddyAgent.AttachmentProvider.Accessor
ByteBuddyAgent.AttachmentProvider.Accessor.Simple, ByteBuddyAgent.AttachmentProvider.Accessor.UnavailableVIRTUAL_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 |
|---|---|
boolean |
equals(Object other) |
Class<?> |
getVirtualMachineType()
Returns the
com.sun.tools.attach.VirtualMachine class. |
int |
hashCode() |
boolean |
isAvailable()
Determines if this accessor is applicable for the currently running JVM.
|
static ByteBuddyAgent.AttachmentProvider.Accessor |
of(ClassLoader classLoader)
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. |
String |
toString() |
protected Simple(Class<?> virtualMachineType)
virtualMachineType - The com.sun.tools.attach.VirtualMachine class.public static ByteBuddyAgent.AttachmentProvider.Accessor of(ClassLoader classLoader)
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.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()
ByteBuddyAgent.AttachmentProvider.AccessorisAvailable in interface ByteBuddyAgent.AttachmentProvider.Accessortrue if this accessor is available.public Class<?> getVirtualMachineType()
ByteBuddyAgent.AttachmentProvider.Accessorcom.sun.tools.attach.VirtualMachine class. This method must only be called
for available accessors.getVirtualMachineType in interface ByteBuddyAgent.AttachmentProvider.AccessorCopyright © 2014–2016. All rights reserved.