2 |
package gzz.storm.impl; |
package gzz.storm.impl; |
3 |
import gzz.storm.*; |
import gzz.storm.*; |
4 |
import java.io.*; |
import java.io.*; |
5 |
|
import java.util.*; |
6 |
|
|
7 |
/** An abstract implementation of a non-network <code>StormPool</code>. |
/** An abstract implementation of a non-network <code>StormPool</code>. |
8 |
* This provides default implementations of the |
* This provides default implementations of the |
10 |
*/ |
*/ |
11 |
public abstract class AbstractLocalPool extends AbstractPool { |
public abstract class AbstractLocalPool extends AbstractPool { |
12 |
|
|
13 |
|
public AbstractLocalPool(Set indexTypes) { |
14 |
|
super(indexTypes); |
15 |
|
} |
16 |
|
|
17 |
public void request(BlockId id) {} |
public void request(BlockId id) {} |
18 |
|
|
19 |
public void request(BlockId id, BlockListener listener) { |
public void request(BlockId id, BlockListener listener) { |
24 |
listener.failure(id, e); |
listener.failure(id, e); |
25 |
} |
} |
26 |
} |
} |
27 |
|
|
28 |
|
// XXX temporary, until subclasses have implementations |
29 |
|
public DB getDB(String typeURI) { |
30 |
|
return null; |
31 |
|
} |
32 |
} |
} |