public static File getMetricsDirectory() {
        String neo4jHome = ApocConfiguration.get("unsupported.dbms.directories.neo4j_home", "");
        String metricsSetting = ApocConfiguration.get("dbms.directories.metrics", "");

        File metricsDir = metricsSetting.isEmpty() ? new File(neo4jHome, "metrics") : new File(metricsSetting);

        if (metricsDir.exists() && metricsDir.canRead() && metricsDir.isDirectory() ) {
            return metricsDir;
        }

        return null;
    }
public static File getMetricsDirectory ( ) { String neo4jHome = ApocConfiguration . get ( "unsupported.dbms.directories.neo4j_home" , "" ) ; String metricsSetting = ApocConfiguration . get ( "dbms.directories.metrics" , "" ) ; File metricsDir = metricsSetting . isEmpty ( ) ? new File ( neo4jHome , "metrics" ) : new File ( metricsSetting ) ; if ( metricsDir . exists ( ) && metricsDir . canRead ( ) && metricsDir . isDirectory ( ) ) { return metricsDir ; } return null ; }
@return a File representing the metrics directory that is listable and readable, or null if metrics don't exist,
aren't enabled, or aren't readable.