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 |