|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgps.protocol.BT.param.BTTorrent
public class BTTorrent
Torrent class includes informations in the .torrent file. Torrent metainfo file includes the following keys: announce: the URL of the tracker name: file name piece length: block size pieces: hash of each piece length: file size path: file path In our simulation, only relavent information is included Note: hash of each piece is only for verification purpose! The torrent file and the corresponding document is indexed by the docHashKey
| Field Summary | |
|---|---|
java.lang.String |
mDocHashKey
doc hash key |
double |
mLength
document length |
double |
mPieceLength
piece length |
int |
mPieceNum
total piece number |
int |
mPopularity
document popularity |
BTTracker |
mTracker
reference to tracker where this torrent is stored at |
| Constructor Summary | |
|---|---|
BTTorrent(BTDocument doc,
BTTracker t)
constructs a BTTorrent object |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public BTTracker mTracker
public java.lang.String mDocHashKey
public double mLength
public double mPieceLength
public int mPieceNum
public int mPopularity
| Constructor Detail |
|---|
public BTTorrent(BTDocument doc,
BTTracker t)
doc - the document related to the torrentt - tracker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||