public class GlobalMemoryImpl extends AbstractOshiJsonObject implements GlobalMemory
| Constructor and Description |
|---|
GlobalMemoryImpl(GlobalMemory memory)
Creates a new platform-specific GlobalMemory object wrapping the provided
argument
|
| 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.
|
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSON, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONpublic GlobalMemoryImpl(GlobalMemory memory)
memory - a platform-specific GlobalMemory objectpublic long getTotal()
getTotal in interface GlobalMemorypublic long getAvailable()
getAvailable in interface GlobalMemorypublic long getSwapTotal()
getSwapTotal in interface GlobalMemorypublic long getSwapUsed()
getSwapUsed in interface GlobalMemorypublic javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.Copyright © 2010–2017 oshi. All rights reserved.