ClusterConfiguration getLastSeenConfig ( ) throws IOException { File file = getLatestFileWithPrefix ( this . rootDir , "cluster_config" ) ; if ( file == null ) { return null ; } try { Properties prop = FileUtils . readPropertiesFromFile ( file ) ; return ClusterConfiguration . fromProperties ( prop ) ; } catch ( FileNotFoundException e ) { LOG . debug ( "AckConfig file doesn't exist, probably it's the first time" + "bootup." ) ; } return null ; }
Gets last seen configuration .