Package net.bytebuddy.agent
Enum ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm>
-
- net.bytebuddy.agent.ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm>
,ByteBuddyAgent.ProcessProvider
- Enclosing class:
- ByteBuddyAgent.ProcessProvider.ForCurrentVm
protected static enum ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm extends java.lang.Enum<ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm> implements ByteBuddyAgent.ProcessProvider
A process provider for a legacy VM that reads the process id from its JMX properties.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.ByteBuddyAgent.ProcessProvider
ByteBuddyAgent.ProcessProvider.ForCurrentVm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForLegacyVm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
resolve()
Resolves a process id for the current JVM.static ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm c : ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteBuddyAgent.ProcessProvider.ForCurrentVm.ForLegacyVm valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
resolve
public java.lang.String resolve()
Resolves a process id for the current JVM.- Specified by:
resolve
in interfaceByteBuddyAgent.ProcessProvider
- Returns:
- The resolved process id.
-
-