gps.protocol.BT.algorithm
Class BTAlgorithmPeerSelectionAtTracker

java.lang.Object
  extended by gps.protocol.BT.algorithm.BTAlgorithmPeerSelectionAtTracker

public class BTAlgorithmPeerSelectionAtTracker
extends java.lang.Object

bt tracker select peer list to respond GET request from peer

Version:
1.2, 6/20/2005
Author:
Weishuai Yang

Field Summary
static int DEFAULT_PEER_NUM_LIMIT
          default peer number in peer list
 
Constructor Summary
BTAlgorithmPeerSelectionAtTracker(int n)
          constructs peer selection algorithm object
 
Method Summary
 java.util.ArrayList selectPeers(java.util.List list)
          selects peers having documents from trackers database
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PEER_NUM_LIMIT

public static int DEFAULT_PEER_NUM_LIMIT
default peer number in peer list

Constructor Detail

BTAlgorithmPeerSelectionAtTracker

public BTAlgorithmPeerSelectionAtTracker(int n)
constructs peer selection algorithm object

Parameters:
n - seed for random object
Method Detail

selectPeers

public java.util.ArrayList selectPeers(java.util.List list)
selects peers having documents from trackers database

Parameters:
list - trackers database records for this document
Returns:
peer list