/** * Returns the amount of free swap space in bytes or -1 if not available. * * @return amount of free swap space in bytes or -1 if not available */ public static long freeSwapSpace() { return readLongAttribute("FreeSwapSpaceSize", -1L); } }
/** * Returns the amount of physical memory that is available on the system in bytes or -1 if not available. * * @return free physical memory in bytes or -1 if not available */ public static long freePhysicalMemory() { return readLongAttribute("FreePhysicalMemorySize", -1L); }
/** * Returns the amount of physical memory that is available on the system in bytes or -1 if not available. * * @return free physical memory in bytes or -1 if not available */ public static long freePhysicalMemory() { return readLongAttribute("FreePhysicalMemorySize", -1L); }
/** * Returns the amount of free swap space in bytes or -1 if not available. * * @return amount of free swap space in bytes or -1 if not available */ public static long freeSwapSpace() { return readLongAttribute("FreeSwapSpaceSize", -1L); } }