Package org.jvnet.hudson
Class MemoryUsage
- java.lang.Object
-
- org.jvnet.hudson.MemoryUsage
-
- All Implemented Interfaces:
Serializable
public class MemoryUsage extends Object implements Serializable
Memory usage. Immutable.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description long
availablePhysicalMemory
Of the total physical memory of the system, available bytes.long
availableSwapSpace
Available swap space in bytes.long
totalPhysicalMemory
Total physical memory of the system, in bytes.long
totalSwapSpace
Total number of swap space in bytes.
-
Constructor Summary
Constructors Constructor Description MemoryUsage(long totalPhysicalMemory, long availablePhysicalMemory, long totalSwapSpace, long availableSwapSpace)
-
-
-
Field Detail
-
totalPhysicalMemory
public final long totalPhysicalMemory
Total physical memory of the system, in bytes. -1 if unknown.
-
availablePhysicalMemory
public final long availablePhysicalMemory
Of the total physical memory of the system, available bytes. -1 if unknown.
-
totalSwapSpace
public final long totalSwapSpace
Total number of swap space in bytes. -1 if unknown.
-
availableSwapSpace
public final long availableSwapSpace
Available swap space in bytes. -1 if unknown.
-
-