private void showAdminFormMemBasedLoadMgr ( PrintWriter out , boolean advancedView ) { if ( ! ( loadMgr instanceof MemBasedLoadManager ) ) { return ; } out . print ( "<h2>Memory Based Scheduling</h2>\n" ) ; MemBasedLoadManager memLoadMgr = ( MemBasedLoadManager ) loadMgr ; Collection < String > possibleThresholds = Arrays . asList ( ( "0,1,2,3,4,5,6,7,8,9,10,1000" ) . split ( "," ) ) ; long reservedMemGB = ( long ) ( memLoadMgr . getReservedPhysicalMemoryOnTT ( ) / 1024D + 0.5 ) ; out . printf ( "<p>Reserve %s GB memory on one node." , generateSelect ( possibleThresholds , "" + reservedMemGB , "/fairscheduler?setTtThreshold=<CHOICE>" + ( advancedView ? "&advanced" : "" ) ) ) ; }
Print the administration form for the MemBasedLoadManager