/[gzz]/gzz/lava/gzz/storm/impl/DirPool.java
ViewVC logotype

Diff of /gzz/lava/gzz/storm/impl/DirPool.java

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

revision 1.11 by benja, Sat Nov 16 05:59:46 2002 UTC revision 1.12 by benja, Mon Dec 23 02:28:18 2002 UTC
# Line 124  public class DirPool extends AbstractPoo Line 124  public class DirPool extends AbstractPoo
124      public void delete(Block b) throws IOException {      public void delete(Block b) throws IOException {
125          getFile(b.getId()).delete();          getFile(b.getId()).delete();
126      }      }
127      public Set getIds() {      public SetCollector getIds() {
128          HashSet ids = new HashSet();          HashSet ids = new HashSet();
129          String[] list = dir.list();          String[] list = dir.list();
130                    
# Line 132  public class DirPool extends AbstractPoo Line 132  public class DirPool extends AbstractPoo
132              if(list[i].startsWith("b_"))              if(list[i].startsWith("b_"))
133                  ids.add(new BlockId("storm:block:" + list[i].substring(2)));                  ids.add(new BlockId("storm:block:" + list[i].substring(2)));
134    
135          return ids;          return new SimpleSetCollector(ids);
136      }      }
137      public BlockOutputStream getBlockOutputStream(String contentType)      public BlockOutputStream getBlockOutputStream(String contentType)
138                                                            throws IOException {                                                            throws IOException {

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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