Changeset 224 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/commands/CMDloadSessionsFromClickstream.java
- Timestamp:
- 09/30/11 16:38:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/commands/CMDloadSessionsFromClickstream.java
r183 r224 33 33 } 34 34 String source = (String) parameters.get(0); 35 String sequencesName = (String) parameters.get(1); 35 36 int timeout = -1; 36 37 int minLength = -1; 37 String sequencesName = "sequences"; 38 if (parameters.size() >= 3) { 39 timeout = Integer.parseInt((String) parameters.get(1)); 40 minLength = Integer.parseInt((String) parameters.get(2)); 41 } 38 int maxLength = -1; 42 39 if (parameters.size() >= 4) { 43 sequencesName = (String) parameters.get(3); 40 timeout = Integer.parseInt((String) parameters.get(2)); 41 minLength = Integer.parseInt((String) parameters.get(3)); 42 maxLength = Integer.parseInt((String) parameters.get(4)); 44 43 } 45 44 … … 48 47 parser.setTimeout(timeout); 49 48 parser.setMinLength(minLength); 49 parser.setMaxLength(maxLength); 50 50 } 51 51 try { … … 73 73 @Override 74 74 public void help() { 75 Console.println("Usage: loadSessionsFromClickstream <filename> {<timeout> <minSessionLength>} {<sequencesName>}");75 Console.println("Usage: loadSessionsFromClickstream <filename> <sequencesName> {<timeout> <minSessionLength> <maxSessionLength>}"); 76 76 } 77 77
Note: See TracChangeset
for help on using the changeset viewer.