public static float getManagedMemoryFraction ( Configuration configuration ) { float managedMemoryFraction = configuration . getFloat ( TaskManagerOptions . MANAGED_MEMORY_FRACTION ) ; checkConfigParameter ( managedMemoryFraction > 0.0f && managedMemoryFraction < 1.0f , managedMemoryFraction , TaskManagerOptions . MANAGED_MEMORY_FRACTION . key ( ) , "MemoryManager fraction of the free memory must be between 0.0 and 1.0" ) ; return managedMemoryFraction ; }
Parses the configuration to get the fraction of managed memory and validates the value .