| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final Pattern | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true iff a relevant controller has been found at the
given lineAmends cgroup infos with mount path and mount root. |
| pack-priv static CgroupMetrics | |
| public static CgroupMetrics | |
| public static Optional | |
| private static void | |
| private static void | |
| private static void |
| BLKIO_CTRL | back to summary |
|---|---|
| private static final String BLKIO_CTRL | |
| CPU_CTRL | back to summary |
|---|---|
| private static final String CPU_CTRL | |
| CPUACCT_CTRL | back to summary |
|---|---|
| private static final String CPUACCT_CTRL | |
| CPUSET_CTRL | back to summary |
|---|---|
| private static final String CPUSET_CTRL | |
| MEMORY_CTRL | back to summary |
|---|---|
| private static final String MEMORY_CTRL | |
| MOUNTINFO_PATTERN | back to summary |
|---|---|
| private static final Pattern MOUNTINFO_PATTERN | |
| PIDS_CTRL | back to summary |
|---|---|
| private static final String PIDS_CTRL | |
| CgroupSubsystemFactory | back to summary |
|---|---|
| public CgroupSubsystemFactory() | |
| amendCgroupInfos | back to summary |
|---|---|
| private static boolean amendCgroupInfos(String mntInfoLine, Map<String, CgroupInfo> infos, boolean isCgroupsV2) Amends cgroup infos with mount path and mount root. The passed in 'mntInfoLine' represents a single line in, for example, /proc/self/mountinfo. Each line is matched with MOUNTINFO_PATTERN (see above), so as to extract the relevant tokens from the line. Host example cgroups v1: 44 30 0:41 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:16 - cgroup cgroup rw,seclabel,devices Container example cgroups v1: 1901 1894 0:37 /system.slice/docker-2291eeb92093f9d761aaf971782b575e9be56bd5930d4b5759b51017df3c1387.scope /sys/fs/cgroup/cpu,cpuacct ro,nosuid,nodev,noexec,relatime master:12 - cgroup cgroup rw,seclabel,cpu,cpuacct Container example cgroups v2: 1043 1034 0:27 / /sys/fs/cgroup ro,nosuid,nodev,noexec,relatime - cgroup2 cgroup2 rw,seclabel,nsdelegate
| |
| create | back to summary |
|---|---|
| pack-priv static CgroupMetrics create() | |
| create | back to summary |
|---|---|
| public static CgroupMetrics create(Optional<CgroupSubsystemFactory. | |
| determineType | back to summary |
|---|---|
| public static Optional | |
| setCgroupV1Path | back to summary |
|---|---|
| private static void setCgroupV1Path(Map<String, CgroupInfo> infos, String[] tokens) | |
| setCgroupV2Path | back to summary |
|---|---|
| private static void setCgroupV2Path(Map<String, CgroupInfo> infos, String[] tokens) | |
| setMountPoints | back to summary |
|---|---|
| private static void setMountPoints(CgroupInfo info, String mountPath, String mountRoot) | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final Map | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private | CgroupTypeResult(boolean isCgroupV2, boolean anyControllersEnabled, boolean anyCgroupV2Controllers, boolean anyCgroupV1Controllers, Map<String, CgroupInfo> infos)
|
| Modifier and Type | Method and Description |
|---|---|
| public Map | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean |
| anyCgroupV1Controllers | back to summary |
|---|---|
| private final boolean anyCgroupV1Controllers | |
| anyCgroupV2Controllers | back to summary |
|---|---|
| private final boolean anyCgroupV2Controllers | |
| anyControllersEnabled | back to summary |
|---|---|
| private final boolean anyControllersEnabled | |
| infos | back to summary |
|---|---|
| private final Map<String, CgroupInfo> infos | |
| isCgroupV2 | back to summary |
|---|---|
| private final boolean isCgroupV2 | |
| CgroupTypeResult | back to summary |
|---|---|
| private CgroupTypeResult(boolean isCgroupV2, boolean anyControllersEnabled, boolean anyCgroupV2Controllers, boolean anyCgroupV1Controllers, Map<String, CgroupInfo> infos) | |
| getInfos | back to summary |
|---|---|
| public Map | |
| isAnyCgroupV1Controllers | back to summary |
|---|---|
| public boolean isAnyCgroupV1Controllers() | |
| isAnyCgroupV2Controllers | back to summary |
|---|---|
| public boolean isAnyCgroupV2Controllers() | |
| isAnyControllersEnabled | back to summary |
|---|---|
| public boolean isAnyControllersEnabled() | |
| isCgroupV2 | back to summary |
|---|---|
| public boolean isCgroupV2() | |