- Timestamp:
- 09/30/11 17:36:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/web/commands/CMDloadSessionsFromClickstream.java
r224 r225 34 34 String source = (String) parameters.get(0); 35 35 String sequencesName = (String) parameters.get(1); 36 String serverUrl = ""; 36 37 int timeout = -1; 37 38 int minLength = -1; 38 39 int maxLength = -1; 39 if (parameters.size() >= 4) { 40 timeout = Integer.parseInt((String) parameters.get(2)); 41 minLength = Integer.parseInt((String) parameters.get(3)); 42 maxLength = Integer.parseInt((String) parameters.get(4)); 40 if( parameters.size()>=3 ) { 41 serverUrl = (String) parameters.get(2); 42 } 43 if (parameters.size() >= 5) { 44 timeout = Integer.parseInt((String) parameters.get(3)); 45 minLength = Integer.parseInt((String) parameters.get(4)); 46 maxLength = Integer.parseInt((String) parameters.get(5)); 43 47 } 44 48 45 49 WeblogParser parser = new WeblogParser(); 50 if( serverUrl!="" ) { 51 parser.setUrl(serverUrl); 52 } 46 53 if (timeout != -1) { 47 54 parser.setTimeout(timeout); … … 73 80 @Override 74 81 public void help() { 75 Console.println("Usage: loadSessionsFromClickstream <filename> <sequencesName> {< timeout> <minSessionLength> <maxSessionLength>}");82 Console.println("Usage: loadSessionsFromClickstream <filename> <sequencesName> {<serverUrl>} {<timeout> <minSessionLength> <maxSessionLength>}"); 76 83 } 77 84
Note: See TracChangeset
for help on using the changeset viewer.