public void readConfiguration ( File configFile ) throws TracerFactory . Exception , FileNotFoundException { if ( ! configFile . exists ( ) ) throw new FileNotFoundException ( configFile + "doesn't exist." ) ; try ( FileInputStream fileInputStream = new FileInputStream ( configFile ) ) { readConfiguration ( fileInputStream ) ; } catch ( IOException ex ) { ex . printStackTrace ( System . err ) ; } }
Reads the given configuration file validates it against a XML - Schema and creates the tracer pool its mappings and the queue accordingly . This method should normally be invoked once at program start . Multiple calls with the same configuration file leads to instantiations of new tracer objects and mappings which will replace the old tracers and their mappings .