All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oshi.hardware.GlobalMemory Maven / Gradle / Ivy

package oshi.hardware;

import java.io.Serializable;

/**
 * @author angju
 * 
 */
public interface GlobalMemory extends Serializable {
    /**
     * The amount of actual physical memory, in bytes.
     *
     * @return Total number of bytes.
     */
    long getTotal();

    /**
     * The amount of physical memory currently available, in bytes.
     *
     * @return Available number of bytes.
     */
    long getAvailable();

    /**
     * The current size of the paging/swap file(s), in bytes. If the paging/swap
     * file can be extended, this is a soft limit.
     *
     * @return Total swap in bytes.
     */
    long getSwapTotal();

    /**
     * The current memory committed to the paging/swap file(s), in bytes
     *
     * @return Swap used in bytes
     */
    long getSwapUsed();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy