package journal.action; import journal.reader.DataJournalEntry; public class EmptyFilesizeFinder extends BaseAction { @Override public void putValue(DataJournalEntry data) throws Exception { if( data.getTableName().equals("db.rev") || data.getTableName().equals("db.revhx")) { Short action = (Short) data.getValue("action"); if (action != 2 && action != 7) { // delete or movefrom Long filesize = (Long) data.getValue("size"); if( filesize == -1 ) { out.println(data.toJournalString()); } } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 8296 | Sven Erik Knop |
Clean-up: instead of casting in every action, cast only once in the dispatcher. Should make code saner and safer. No functional change. |
||
#1 | 7936 | Sven Erik Knop | Attempt at an EmptyFileSizeFinder Action. |