Package co.elastic.apm.attach
Enum JvmDiscoverer.ForCurrentVM
- java.lang.Object
-
- java.lang.Enum<JvmDiscoverer.ForCurrentVM>
-
- co.elastic.apm.attach.JvmDiscoverer.ForCurrentVM
-
- All Implemented Interfaces:
JvmDiscoverer,Serializable,Comparable<JvmDiscoverer.ForCurrentVM>
- Enclosing interface:
- JvmDiscoverer
public static enum JvmDiscoverer.ForCurrentVM extends Enum<JvmDiscoverer.ForCurrentVM> implements JvmDiscoverer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface co.elastic.apm.attach.JvmDiscoverer
JvmDiscoverer.ForCurrentVM, JvmDiscoverer.ForHotSpotVm, JvmDiscoverer.Jps, JvmDiscoverer.Unavailable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<co.elastic.apm.attach.JvmInfo>discoverJvms()booleanisAvailable()static JvmDiscoverer.ForCurrentVMvalueOf(String name)Returns the enum constant of this type with the specified name.static JvmDiscoverer.ForCurrentVM[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final JvmDiscoverer.ForCurrentVM INSTANCE
-
-
Method Detail
-
values
public static JvmDiscoverer.ForCurrentVM[] 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 (JvmDiscoverer.ForCurrentVM c : JvmDiscoverer.ForCurrentVM.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JvmDiscoverer.ForCurrentVM valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
discoverJvms
public Collection<co.elastic.apm.attach.JvmInfo> discoverJvms() throws Exception
- Specified by:
discoverJvmsin interfaceJvmDiscoverer- Throws:
Exception
-
isAvailable
public boolean isAvailable()
- Specified by:
isAvailablein interfaceJvmDiscoverer
-
-