Changeset 1491 for MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Pz2ProxyAction.java
- Timestamp:
- 08/22/11 12:35:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Pz2ProxyAction.java
r1488 r1491 189 189 190 190 InputStream is = null; 191 191 // TODO param settings 192 192 //init 193 193 setCommand("init"); … … 203 203 setSort("relevance"); 204 204 setBlock("1"); 205 //TODO timeout settings 206 long startMillis = System.currentTimeMillis(); 207 long timeout = 0; 208 if (this.getWPOption("pazpartimeout") == null){ 209 timeout = 1000; 210 } else { 211 timeout = Integer.parseInt(this.getWPOption("pazpartimeout")); 212 } 205 213 while (Integer.parseInt(activeclients) > 0){ 206 214 //activeclients = getDocumentData(this.getSourceStream(), "//show/activeclients"); 207 215 is = this.getSourceStream(); 208 216 activeclients = getDocumentData(is, "//show/activeclients"); 209 217 Thread.sleep(1000); 218 Admin.notifyUser("ActiveClients: " + activeclients, Admin.DEBUG); 219 if ((System.currentTimeMillis() - startMillis) > timeout) { 220 break; 221 } 210 222 } 211 223 is = this.getSourceStream();
Note: See TracChangeset
for help on using the changeset viewer.