public static boolean isAvailable ( ) { try { String osName = System . getProperty ( "os.name" ) ; if ( ! osName . startsWith ( "Linux" ) ) { LOG . info ( "ProcfsBasedProcessTree currently is supported only on " + "Linux." ) ; return false ; } } catch ( SecurityException se ) { LOG . warn ( "Failed to get Operating System name. " + se ) ; return false ; } return true ; }
Checks if the ProcfsBasedProcessTree is available on this system .