private int getLogFileIndex ( String fileName ) { int fileIndex = 0 ; try { fileIndex = Integer . parseInt ( fileName . substring ( fileName . lastIndexOf ( COUNT_SEPARATOR ) + 1 ) ) ; } catch ( NumberFormatException e ) { e . printStackTrace ( ) ; } return fileIndex ; }
Get the log file index from the composed log file name .