public static synchronized boolean isNativeLoaded ( ) { try { return isSigarAlreadyLoaded ( ) ; } catch ( final Throwable e ) { try { final Sigar sigar = new Sigar ( ) ; sigar . getPid ( ) ; sigar . close ( ) ; return true ; } catch ( final Throwable ex ) { return false ; } } }
Verify if sigar native library is loaded and operational .