|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.pluginsimpl.local.peers.PeerManagerImpl.pieceFacade
protected class PeerManagerImpl.pieceFacade
| Constructor Summary | |
|---|---|
protected |
PeerManagerImpl.pieceFacade(int _index)
|
| Method Summary | |
|---|---|
int |
getAllocatableRequestCount()
number of requests that are available to be made |
int |
getIndex()
|
int |
getLength()
|
Peer |
getReservedFor()
Reserve this peice for a given peer - no other peer will be asked for the piece |
boolean |
isDone()
|
boolean |
isDownloading()
|
boolean |
isFullyAllocatable()
indicates if this piece is free and available to be allocated for download not done, needed and not downloading |
boolean |
isNeeded()
|
void |
setReservedFor(Peer peer)
Set the peer that will be responsible for downloading the piece |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PeerManagerImpl.pieceFacade(int _index)
| Method Detail |
|---|
public int getIndex()
getIndex in interface Piecepublic int getLength()
getLength in interface Piecepublic boolean isDone()
isDone in interface Piecepublic boolean isNeeded()
isNeeded in interface Piecepublic boolean isDownloading()
isDownloading in interface Piecepublic boolean isFullyAllocatable()
Piece
isFullyAllocatable in interface Piecepublic int getAllocatableRequestCount()
Piece
getAllocatableRequestCount in interface Piecepublic Peer getReservedFor()
Piece
getReservedFor in interface Piecepublic void setReservedFor(Peer peer)
Piece
setReservedFor in interface Piece
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||