- Timestamp:
- 06/15/11 16:54:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/commands/CMDloadSessionsFromClickstream.java
r54 r68 16 16 @Override 17 17 public void run(List<Object> parameters) { 18 // TODO Auto-generated method stub19 18 if( parameters.size() < 1 ) { 20 19 throw new InvalidParameterException(); 21 20 } 22 21 String source = (String) parameters.get(0); 22 int timeout = -1; 23 int minLength = -1; 24 if( parameters.size() ==3 ) { 25 timeout = Integer.parseInt((String) parameters.get(1)); 26 minLength = Integer.parseInt((String) parameters.get(2)); 27 } 23 28 24 WeblogParser parser = new WeblogParser(); 29 WeblogParser parser = new WeblogParser();; 30 if( timeout!=-1 ) { 31 parser.setTimeout(timeout); 32 parser.setMinLength(minLength); 33 } 25 34 try { 26 35 parser.parseFile(source); … … 39 48 @Override 40 49 public void help() { 41 // TODO Auto-generated method stub 42 50 Console.println("Usage: loadSessionsFromClickstream <filename> {<timeout> <minSessionLength>}"); 43 51 } 44 52
Note: See TracChangeset
for help on using the changeset viewer.