public static synchronized void configure ( final String options , final Instrumentation instrumentation ) throws Exception { if ( SigarAgent . instrumentation != null ) { logger . severe ( "Duplicate agent setup attempt." ) ; return ; } SigarAgent . options = options ; SigarAgent . instrumentation = instrumentation ; logger . info ( "Sigar loader options: " + options ) ; final File folder = new File ( SigarProvisioner . discoverLocation ( options ) ) ; SigarProvisioner . provision ( folder ) ; }
Agent mode configuration .