Package nl.lexemmens.podman.enumeration
Enum CGroupManager
- java.lang.Object
-
- java.lang.Enum<CGroupManager>
-
- nl.lexemmens.podman.enumeration.CGroupManager
-
- All Implemented Interfaces:
Serializable,Comparable<CGroupManager>
public enum CGroupManager extends Enum<CGroupManager>
Enumeration that contains the possible values for the cgroup maanger that can be used
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommand()Returns the cgroupManager corresponding to the selected valuestatic CGroupManagervalueOf(String name)Returns the enum constant of this type with the specified name.static CGroupManager[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SYSTEMD
public static final CGroupManager SYSTEMD
-
CGROUPFS
public static final CGroupManager CGROUPFS
-
-
Method Detail
-
values
public static CGroupManager[] 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 (CGroupManager c : CGroupManager.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CGroupManager 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
-
getCommand
public String getCommand()
Returns the cgroupManager corresponding to the selected value- Returns:
- The corresponding cgroupManager.
-
-