private synchronized void recover ( ) { try { // close all reopen dataRecorders this . close ( ) ; Set < String > loggerNames = this . dataLoggerFactory . findLoggerNames ( ) ; // recover all logs for ( String loggerName : loggerNames ) { IDataLogger dataLogger = this . dataLoggerFactory . instanciateLogger ( loggerName ) ; XADataLogger xaLogger = new XADataLogger ( dataLogger ) ; PhynixxXADataRecorder phynixxXADataRecorder = PhynixxXADataRecorder . recoverDataRecorder ( xaLogger , this ) ; this . addXADataRecorder ( phynixxXADataRecorder ) ; } } catch ( Exception e ) { throw new DelegatedRuntimeException ( e ) ; } }
recovers all dataRecorder of the loggerSystem . All reopen dataRecorders are closed and all dataRecorder that can be recovered are opened for reading