|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Piece
public int getLength()
getLength
in interface Piece
public boolean isDone()
isDone
in interface Piece
public boolean isNeeded()
isNeeded
in interface Piece
public boolean isDownloading()
isDownloading
in interface Piece
public boolean isFullyAllocatable()
Piece
isFullyAllocatable
in interface Piece
public int getAllocatableRequestCount()
Piece
getAllocatableRequestCount
in interface Piece
public Peer getReservedFor()
Piece
getReservedFor
in interface Piece
public 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 |