Package de.foellix.aql.helper
Class MemoryHelper
java.lang.Object
de.foellix.aql.helper.MemoryHelper
-
Method Summary
Modifier and TypeMethodDescriptionintgetCurrentlyAvailableMemory(Set<Task> tasks) Return the memory currently available with respect to the tasks running.static MemoryHelperintReturns the max memory available and assigned to be usedintReturns the max memory available in the system
-
Method Details
-
getInstance
-
getCurrentlyAvailableMemory
Return the memory currently available with respect to the tasks running.- Parameters:
tasks- Currently running tasks- Returns:
- the memory available
-
getMaxAvailableMemory
public int getMaxAvailableMemory()Returns the max memory available in the system- Returns:
- memory in GB
-
getMaxAssignableMemory
public int getMaxAssignableMemory()Returns the max memory available and assigned to be used- Returns:
- memory in GB
-
getMemoryInfo
-