public abstract class AbstractGlobalMemory extends Object implements GlobalMemory
| Modifier and Type | Field and Description |
|---|---|
protected long |
memAvailable |
protected long |
memTotal |
protected long |
swapTotal |
protected long |
swapUsed |
| Constructor and Description |
|---|
AbstractGlobalMemory() |
| Modifier and Type | Method and Description |
|---|---|
long |
getAvailable()
The amount of physical memory currently available, in bytes.
|
long |
getSwapTotal()
The current size of the paging/swap file(s), in bytes.
|
long |
getSwapUsed()
The current memory committed to the paging/swap file(s), in bytes
|
long |
getTotal()
The amount of actual physical memory, in bytes.
|
protected abstract void |
updateMeminfo()
Updates physical memory instance variables.
|
protected abstract void |
updateSwap()
Updates virtual memory instance variables.
|
protected long memTotal
protected long memAvailable
protected long swapTotal
protected long swapUsed
protected abstract void updateMeminfo()
protected abstract void updateSwap()
public long getAvailable()
getAvailable in interface GlobalMemorypublic long getTotal()
getTotal in interface GlobalMemorypublic long getSwapUsed()
getSwapUsed in interface GlobalMemorypublic long getSwapTotal()
getSwapTotal in interface GlobalMemoryCopyright © 2010–2017 oshi. All rights reserved.