forked from aws-greengrass/aws-greengrass-nucleus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Linux Control Group version 2 API support (cgroup v2) (aws-gree…
- Loading branch information
1 parent
f3f4935
commit 5013bf9
Showing
3 changed files
with
85 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/aws/greengrass/util/platforms/unix/linux/CgroupV2FreezerState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.aws.greengrass.util.platforms.unix.linux; | ||
|
||
public enum CgroupV2FreezerState { | ||
THAWED(0), | ||
FROZEN(1); | ||
|
||
private int index; | ||
|
||
CgroupV2FreezerState(int index) { | ||
this.index = index; | ||
} | ||
|
||
/** | ||
* Get the index value associated with this CgroupV2FreezerState. | ||
* | ||
* @return the integer index value associated with this CgroupV2FreezerState. | ||
*/ | ||
public int getIndex() { | ||
return index; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters