public boolean loadJMXSettings() {
        Log log = config.getLog();
        
        // load settings file
        // if non-existant, nothing to load so return success
        File settingsFile = getSettingsFile();
        if (!settingsFile.exists()) { return true; }
        
        // validate file is readable
        if (!settingsFile.canRead()) {
            log.warn("Temporary directory not readable for JMX settings");
            return false;
        }
        
        // create the properties
        Properties properties = new Properties();
        
        // load the properties
        FileInputStream in = null;
        try { 
            in = new FileInputStream(settingsFile);
            properties.load(in);
        }
        catch (IOException ioe) {
            log.error("Unable to load JMX settings: " + ioe.getMessage());
            log.error(ioe);
            return false;
        }
        finally {
            try { if (in != null) { in.close(); } }
            catch (IOException e) { /* ignore */ }
        }
        
        // load the settings
        String value;
        
        value = properties.getProperty("EdenSpace");
        if (value != null) { edenSpace = new String[] { value }; }
        
        value = properties.getProperty("SurvivorSpace");
        if (value != null) { survivorSpace = new String[] { value }; }
        
        value = properties.getProperty("PermGen");
        if (value != null) { permGen = new String[] { value }; }
        
        value = properties.getProperty("TenuredGen");
        if (value != null) { tenuredGen = new String[] { value }; }
        
        value = properties.getProperty("YoungCollector");
        if (value != null) { youngCollector = new String[] { value }; }
        
        value = properties.getProperty("TenuredCollector");
        if (value != null) { tenuredCollector = new String[] { value }; }
        
        // success
        return true;
    }
public boolean loadJMXSettings ( ) { Log log = config . getLog ( ) ; File settingsFile = getSettingsFile ( ) ; if ( ! settingsFile . exists ( ) ) { return true ; } if ( ! settingsFile . canRead ( ) ) { log . warn ( "Temporary directory not readable for JMX settings" ) ; return false ; } Properties properties = new Properties ( ) ; FileInputStream in = null ; try { in = new FileInputStream ( settingsFile ) ; properties . load ( in ) ; } catch ( IOException ioe ) { log . error ( "Unable to load JMX settings: " + ioe . getMessage ( ) ) ; log . error ( ioe ) ; return false ; } finally { try { if ( in != null ) { in . close ( ) ; } } catch ( IOException e ) { } } String value ; value = properties . getProperty ( "EdenSpace" ) ; if ( value != null ) { edenSpace = new String [ ] { value } ; } value = properties . getProperty ( "SurvivorSpace" ) ; if ( value != null ) { survivorSpace = new String [ ] { value } ; } value = properties . getProperty ( "PermGen" ) ; if ( value != null ) { permGen = new String [ ] { value } ; } value = properties . getProperty ( "TenuredGen" ) ; if ( value != null ) { tenuredGen = new String [ ] { value } ; } value = properties . getProperty ( "YoungCollector" ) ; if ( value != null ) { youngCollector = new String [ ] { value } ; } value = properties . getProperty ( "TenuredCollector" ) ; if ( value != null ) { tenuredCollector = new String [ ] { value } ; } return true ; }
Load the previously saved and configured JMX settings for memory pools
and collectors.  The settings are stored in the temporary/working
directory of the servlet.

@return true if successfully saved, false otherwise

@see #saveJMXSettings()