public static enum ByteBuddyAgent.ProcessProvider.ForCurrentVm extends Enum<ByteBuddyAgent.ProcessProvider.ForCurrentVm> implements ByteBuddyAgent.ProcessProvider
Modifier and Type | Class and Description |
---|---|
protected static class |
ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForJava9CapableVm
A process provider for a Java 9 capable VM with access to the introduced process API.
|
protected static class |
ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm
A process provider for a legacy VM that reads the process id from its JMX properties.
|
ByteBuddyAgent.ProcessProvider.ForCurrentVm
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
String |
resolve()
Resolves a process id for the current JVM.
|
static ByteBuddyAgent.ProcessProvider.ForCurrentVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ByteBuddyAgent.ProcessProvider.ForCurrentVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ByteBuddyAgent.ProcessProvider.ForCurrentVm INSTANCE
public static ByteBuddyAgent.ProcessProvider.ForCurrentVm[] values()
for (ByteBuddyAgent.ProcessProvider.ForCurrentVm c : ByteBuddyAgent.ProcessProvider.ForCurrentVm.values()) System.out.println(c);
public static ByteBuddyAgent.ProcessProvider.ForCurrentVm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String resolve()
resolve
in interface ByteBuddyAgent.ProcessProvider
Copyright © 2014–2024. All rights reserved.