5 |
import java.io.*; |
import java.io.*; |
6 |
import java.util.*; |
import java.util.*; |
7 |
|
|
8 |
/** Scratch for a P2P-based, indexed Storm pool. |
/** P2P-based, indexed Storm pool. |
9 |
* Unfinished. |
* "Componentalized" into a "P2PMap" (an peer-to-peer indexing mechanism) |
10 |
|
* and a "Server" (actually a matching client and server implementation, |
11 |
|
* for retrieving actual files). The simplest Server impl is HTTP |
12 |
|
* (see <code>HttpP2PServer.py</code>, a Python module because |
13 |
|
* we use Python's existing HTTP server code). |
14 |
|
* <p> |
15 |
|
* XXX finish |
16 |
|
* XXX Become asynchronous -> don't subclass AbstractLocalPool... |
17 |
*/ |
*/ |
18 |
public abstract class P2PPool extends AbstractPool { |
public abstract class P2PPool extends AbstractLocalPool { |
19 |
|
|
20 |
protected P2PMap map; |
protected P2PMap map; |
21 |
protected Server server; |
protected Server server; |