public class MemoryCore extends Object implements CgroupCore
Modifier and Type | Class and Description |
---|---|
static class |
MemoryCore.Stat |
Modifier and Type | Field and Description |
---|---|
static String |
MEMORY_FAILCNT |
static String |
MEMORY_FORCE_EMPTY |
static String |
MEMORY_LIMIT_IN_BYTES |
static String |
MEMORY_MAX_USAGE_IN_BYTES |
static String |
MEMORY_MEMSW_FAILCNT |
static String |
MEMORY_MEMSW_LIMIT_IN_BYTES |
static String |
MEMORY_MEMSW_MAX_USAGE_IN_BYTES |
static String |
MEMORY_MEMSW_USAGE_IN_BYTES |
static String |
MEMORY_OOM_CONTROL |
static String |
MEMORY_STAT |
static String |
MEMORY_SWAPPINESS |
static String |
MEMORY_USAGE_IN_BYTES |
static String |
MEMORY_USE_HIERARCHY |
Constructor and Description |
---|
MemoryCore(String dir) |
Modifier and Type | Method and Description |
---|---|
void |
clearForceEmpty() |
long |
getMaxPhysicalUsage() |
long |
getMaxWithSwapUsage() |
int |
getPhysicalFailCount() |
long |
getPhysicalUsage() |
long |
getPhysicalUsageLimit() |
MemoryCore.Stat |
getStat() |
int |
getSwappiness() |
SubSystemType |
getType() |
int |
getWithSwapFailCount() |
long |
getWithSwapUsage() |
long |
getWithSwapUsageLimit() |
boolean |
isOomControl() |
boolean |
isUseHierarchy() |
void |
setOomControl(boolean flag) |
void |
setPhysicalUsageLimit(long value) |
void |
setSwappiness(int value) |
void |
setUseHierarchy(boolean flag) |
void |
setWithSwapUsageLimit(long value) |
public static final String MEMORY_STAT
public static final String MEMORY_USAGE_IN_BYTES
public static final String MEMORY_MEMSW_USAGE_IN_BYTES
public static final String MEMORY_MAX_USAGE_IN_BYTES
public static final String MEMORY_MEMSW_MAX_USAGE_IN_BYTES
public static final String MEMORY_LIMIT_IN_BYTES
public static final String MEMORY_MEMSW_LIMIT_IN_BYTES
public static final String MEMORY_FAILCNT
public static final String MEMORY_MEMSW_FAILCNT
public static final String MEMORY_FORCE_EMPTY
public static final String MEMORY_SWAPPINESS
public static final String MEMORY_USE_HIERARCHY
public static final String MEMORY_OOM_CONTROL
public MemoryCore(String dir)
public SubSystemType getType()
getType
in interface CgroupCore
public MemoryCore.Stat getStat() throws IOException
IOException
public long getPhysicalUsage() throws IOException
IOException
public long getWithSwapUsage() throws IOException
IOException
public long getMaxPhysicalUsage() throws IOException
IOException
public long getMaxWithSwapUsage() throws IOException
IOException
public long getPhysicalUsageLimit() throws IOException
IOException
public void setPhysicalUsageLimit(long value) throws IOException
IOException
public long getWithSwapUsageLimit() throws IOException
IOException
public void setWithSwapUsageLimit(long value) throws IOException
IOException
public int getPhysicalFailCount() throws IOException
IOException
public int getWithSwapFailCount() throws IOException
IOException
public void clearForceEmpty() throws IOException
IOException
public int getSwappiness() throws IOException
IOException
public void setSwappiness(int value) throws IOException
IOException
public boolean isUseHierarchy() throws IOException
IOException
public void setUseHierarchy(boolean flag) throws IOException
IOException
public boolean isOomControl() throws IOException
IOException
public void setOomControl(boolean flag) throws IOException
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.