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

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

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

revision 1.3 by benja, Mon Dec 30 13:49:48 2002 UTC revision 1.4 by benja, Thu Jan 9 03:45:06 2003 UTC
# Line 35  public abstract class AbstractLocalPool Line 35  public abstract class AbstractLocalPool
35          super(indexTypes);          super(indexTypes);
36      }      }
37    
38      public void request(BlockId id) {}      public Block request(BlockId id) throws IOException {
39            return get(id);
40        }
41    
42      public void request(BlockId id, BlockListener listener) {      public Block request(BlockId id, BlockListener listener)
43          try {                                                     throws IOException {
44              Block b = get(id);          return get(id);
             listener.success(b);  
         } catch(IOException e) {  
             listener.failure(id, e);  
         }  
45      }      }
46    
47      // XXX temporary, until subclasses have implementations      // XXX temporary, until subclasses have implementations

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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