package journal.action; import journal.reader.DataJournalEntry; public class FileTypePrinter extends BaseAction { @Override public void putValue(DataJournalEntry data) throws Exception { if( data.getTableName().startsWith("db.rev") ) { Integer type = (Integer) data.getValue("type"); Integer lbrType = (Integer) data.getValue("atype"); String depotFile = (String) data.getValue("dfile"); System.out.println(depotFile + " type = " + type + " lbrType = " + lbrType); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 24773 | Norman Morse |
Moving journalReader from sven's private branch to perforce_software. This is because journalReader is used in the perfsplit test harness, and should be updated over time. Merging //guest/sven_erik_knop/java/JournalReader/... to //guest/perforce_software/journalReader/... |
||
//guest/sven_erik_knop/java/JournalReader/src/journal/action/FileTypePrinter.java | |||||
#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 | 7873 | Sven Erik Knop | Simple FileTypePrinter action. |