Package org.jvnet.hudson
Class MemoryUsage
java.lang.Object
org.jvnet.hudson.MemoryUsage
- All Implemented Interfaces:
Serializable
Memory usage. Immutable.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal long
Of the total physical memory of the system, available bytes.final long
Available swap space in bytes.final long
Total physical memory of the system, in bytes.final long
Total number of swap space in bytes. -
Constructor Summary
ConstructorDescriptionMemoryUsage
(long totalPhysicalMemory, long availablePhysicalMemory, long totalSwapSpace, long availableSwapSpace) -
Method Summary
-
Field Details
-
totalPhysicalMemory
public final long totalPhysicalMemoryTotal physical memory of the system, in bytes. -1 if unknown. -
availablePhysicalMemory
public final long availablePhysicalMemoryOf the total physical memory of the system, available bytes. -1 if unknown. -
totalSwapSpace
public final long totalSwapSpaceTotal number of swap space in bytes. -1 if unknown. -
availableSwapSpace
public final long availableSwapSpaceAvailable swap space in bytes. -1 if unknown.
-
-
Constructor Details
-
MemoryUsage
public MemoryUsage(long totalPhysicalMemory, long availablePhysicalMemory, long totalSwapSpace, long availableSwapSpace)
-
-
Method Details