Ignore:
Timestamp:
01/25/12 13:26:49 (13 years ago)
Author:
sherbold
Message:
  • added commands parseDirJFC and preprocessDirJFC
  • adapted de.ugoe.cs.eventbench.jfc.JFCLogParser such that one instance of the parser can correctly process multiple files
Location:
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/jfc
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/jfc/JFCLogParser.java

    r317 r353  
    110110        public void startElement(String uri, String localName, String qName, 
    111111                        Attributes atts) throws SAXException { 
     112                if( qName.equals("sessions") ) { 
     113                        currentSequence = new LinkedList<JFCEvent>(); 
     114                } 
    112115                if (qName.equals("newsession")) { 
    113116                        Console.traceln("start of session"); 
    114117                        if (currentSequence != null && !currentSequence.isEmpty()) { 
    115118                                sequences.add(currentSequence); 
    116                                 currentSequence = new LinkedList<JFCEvent>(); 
    117                         } 
     119                        } 
     120                        currentSequence = new LinkedList<JFCEvent>(); 
    118121                } else if (qName.equals("event")) { 
    119122                        currentEvent = new JFCEvent(atts.getValue("id")); 
     
    156159                                sequences.add(currentSequence); 
    157160                        } 
     161                        currentSequence = null; 
    158162                } 
    159163        } 
Note: See TracChangeset for help on using the changeset viewer.