|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.protocol.BT.algorithm.BTAlgorithmPeerSelectionAtPeer
public class BTAlgorithmPeerSelectionAtPeer
selects peers to send request
| Field Summary | |
|---|---|
static int |
DEFAULT_PEER_NUM_LIMIT
default peer number to send request |
int |
peerNumLimit
peer number to send request |
| Constructor Summary | |
|---|---|
BTAlgorithmPeerSelectionAtPeer(int n)
constructs peer selection algorithm object |
|
| Method Summary | |
|---|---|
java.util.ArrayList |
selectPeers(java.util.List list)
selects peers having documents from peers local record |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DEFAULT_PEER_NUM_LIMIT
public int peerNumLimit
| Constructor Detail |
|---|
public BTAlgorithmPeerSelectionAtPeer(int n)
n - seed for random object| Method Detail |
|---|
public java.util.ArrayList selectPeers(java.util.List list)
list - local record of peers having this document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||