/[storm]/storm/org/nongnu/storm/util/HTTPProxy.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/util/HTTPProxy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27 by tuukkah, Thu May 8 16:13:15 2003 UTC revision 1.28 by benja, Fri May 9 10:54:56 2003 UTC
# Line 203  public class HTTPProxy implements Runnab Line 203  public class HTTPProxy implements Runnab
203                            
204              writeRewriteLinks(w, rewrite);              writeRewriteLinks(w, rewrite);
205    
206              for(Iterator i=pool.getIds().block().iterator();              SetCollector ids = pool.getIds();
207                  i.hasNext();) {  
208                  BlockId id = (BlockId)i.next();              try {
209                  String s = id.getURI();                  // wait for DHT to receive information from network
210                  if(rewrite) s = base + s;                  Thread.sleep(2000);
211                  w.write("<a href=\""+s+"\">"+id+"</a><br>\n");              } catch(InterruptedException _) {}
212    
213                System.out.println("start recv'n");
214    
215                synchronized(ids) {
216                    for(Iterator i=ids.iterator(); i.hasNext();) {
217                        BlockId id = (BlockId)i.next();
218                        System.out.println("recvd: "+id);
219                        String s = id.getURI();
220                        if(rewrite) s = base + s;
221                        w.write("<a href=\""+s+"\">"+id+"</a><br>\n");
222                    }
223              }              }
224              w.write("</body></html>\n");              w.write("</body></html>\n");
225              w.close();              w.close();

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26