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 CgroupCorepublic MemoryCore.Stat getStat() throws IOException
IOExceptionpublic long getPhysicalUsage()
throws IOException
IOExceptionpublic long getWithSwapUsage()
throws IOException
IOExceptionpublic long getMaxPhysicalUsage()
throws IOException
IOExceptionpublic long getMaxWithSwapUsage()
throws IOException
IOExceptionpublic long getPhysicalUsageLimit()
throws IOException
IOExceptionpublic void setPhysicalUsageLimit(long value)
throws IOException
IOExceptionpublic long getWithSwapUsageLimit()
throws IOException
IOExceptionpublic void setWithSwapUsageLimit(long value)
throws IOException
IOExceptionpublic int getPhysicalFailCount()
throws IOException
IOExceptionpublic int getWithSwapFailCount()
throws IOException
IOExceptionpublic void clearForceEmpty()
throws IOException
IOExceptionpublic int getSwappiness()
throws IOException
IOExceptionpublic void setSwappiness(int value)
throws IOException
IOExceptionpublic boolean isUseHierarchy()
throws IOException
IOExceptionpublic void setUseHierarchy(boolean flag)
throws IOException
IOExceptionpublic boolean isOomControl()
throws IOException
IOExceptionpublic void setOomControl(boolean flag)
throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.