List<StorageEntryWrapper> actionList = new ArrayList<StorageEntryWrapper>();
this.strategy = new RecoverStrategy();
String input = null;
String metaData = null;
String entryData = null;
while((input=reader.readLine())!= null){
if(metaData == null){
metaData = input;
continue;
}
if(input.equals(RecoverWriter.STORAGE_OPERATION_SEPARATOR)){
try{
actionList.add(this.strategy.recover(metaData,entryData));
}catch (RecoverException e) {
LOG.error("Skipping recover entry for metadata: "+metaData,e);
}
this.strategy = new RecoverStrategy();
metaData = null;
entryData = null;
continue;
}
if(entryData == null){
entryData = input;
}
}
return actionList;