public static MemoryType getMemoryType ( Configuration configuration ) { // check whether we use heap or off-heap memory final MemoryType memType ; if ( configuration . getBoolean ( TaskManagerOptions . MEMORY_OFF_HEAP ) ) { memType = MemoryType . OFF_HEAP ; } else { memType = MemoryType . HEAP ; } return memType ; }
Parses the configuration to get the type of memory .