Methods Summary |
---|
public void | addWrite(int blockNumber, java.lang.String sender, byte[] hash, boolean correct)record details of a piece's blocks that have been completed for bad peer detection purposes
|
public void | clearDownloaded(int offset)
|
public void | clearRequested(int blocNumber)
|
public void | getAndMarkBlock(PEPeer peer, int index)
|
public int[] | getAndMarkBlocks(PEPeer peer, int nbWanted, boolean enable_hints)
|
public int | getAvailability()
|
public int | getBlockNumber(int offset)
|
public int | getBlockSize(int block_index)
|
public long | getCreationTime()The time the pePiece was [re]created
|
public org.gudy.azureus2.core3.disk.DiskManagerPiece | getDMPiece()
|
public boolean[] | getDownloaded()
|
public long | getLastDownloadTime(long now)
|
public int | getLength()
|
public PEPeerManager | getManager()
|
public int | getNbBlocks()
|
public int | getNbRequests()
|
public int | getNbUnrequested()
|
public int | getNbWritten()
|
public int | getPieceNumber()
|
public java.lang.Object | getRealTimeData()
|
public java.lang.String | getReservedBy()
|
public int | getResumePriority()
|
public int | getSpeed()
|
public java.lang.String | getString()
|
public long | getTimeSinceLastActivity()How many ms since a write to the piece, or since the piece
was created if no last write time is known.
The return value will be 0 when there's no writes and the piece is new.
|
public java.lang.String[] | getWriters()
|
public boolean | hasUndownloadedBlock()
|
public boolean | hasUnrequestedBlock()
|
public boolean | isDownloaded(int blockNumber)
|
public boolean | isDownloaded()
|
public boolean | isRequestable()
|
public boolean | isRequested(int blockNumber)
|
public boolean | isRequested()
|
public boolean | isWritten()
|
public boolean | isWritten(int blockNumber)
|
public void | reset()
|
public void | setDownloaded(int offset)
|
public void | setLastRequestedPeerSpeed(int speed)
|
public void | setRealTimeData(java.lang.Object o)
|
public boolean | setRequested(PEPeer peer, int blockNumber)
|
public void | setRequested()
|
public void | setReservedBy(java.lang.String peer)
|
public void | setResumePriority(int p)
|
public void | setSpeed(int speed)
|
public void | setWritten(PEPeer peer, int blockNumber)
|