|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.transfer.AbstractTransfer org.xnap.transfer.AbstractDownload org.xnap.plugin.azureus.AzureusDownloadContainer
public class AzureusDownloadContainer
Manages AzureusDownload
objects.
Field Summary |
---|
Fields inherited from class org.xnap.transfer.AbstractTransfer |
---|
MIN_RECALC_INTERVAL, RECALC_INTERVAL, SOCKET_TIMEOUT |
Fields inherited from interface org.xnap.transfer.Transfer |
---|
TRANSFER_TIMEOUT |
Constructor Summary | |
---|---|
AzureusDownloadContainer(org.gudy.azureus2.core3.download.DownloadManager manager)
|
Method Summary | |
---|---|
void |
announceResult(org.gudy.azureus2.core3.tracker.client.TRTrackerResponse response)
|
void |
completionChanged(org.gudy.azureus2.core3.download.DownloadManager manager,
boolean bCompleted)
|
void |
downloadComplete(org.gudy.azureus2.core3.download.DownloadManager manager)
|
javax.swing.Action[] |
getActions()
Returns the actions that can performed by the transfer. |
long |
getBytesTransferred()
Returns how many bytes have been transferred since the transfer was started. |
java.lang.String |
getDescription()
Returns null. |
java.io.File |
getFile()
Returns the file the transfer is using. |
java.lang.String |
getFilename()
Returns the filename that should be presented to the user. |
long |
getFilesize()
Returns the final filesize. |
org.gudy.azureus2.core3.download.DownloadManager |
getManager()
|
Peer |
getPeer()
Returns the peer. |
Plugin |
getPlugin()
Returns the plugin. |
int |
getQueuePosition()
Returns -1; |
Segment[] |
getSegments()
Returns the segments for segmented downloads. |
java.lang.String |
getStatus()
Returns the current status that should be presented to the user. |
long |
getTotalBytesTransferred()
Returns how many bytes have been transferred. |
boolean |
isDone()
Returns true if the transfer is finished. |
boolean |
isRunning()
Returns true if the transfer is running. |
void |
peerAdded(org.gudy.azureus2.core3.peer.PEPeer peer)
|
void |
peerRemoved(org.gudy.azureus2.core3.peer.PEPeer peer)
|
void |
pieceAdded(org.gudy.azureus2.core3.peer.PEPiece piece)
|
void |
pieceRemoved(org.gudy.azureus2.core3.peer.PEPiece piece)
|
void |
scrapeResult(org.gudy.azureus2.core3.tracker.client.TRTrackerScraperResponse response)
|
void |
stateChanged(org.gudy.azureus2.core3.download.DownloadManager manager,
int state)
|
void |
updateAvailability()
|
Methods inherited from class org.xnap.transfer.AbstractDownload |
---|
add, addListListener, clearDone, getChildCount, getChildren, iterator, remove, removeListListener |
Methods inherited from class org.xnap.transfer.AbstractTransfer |
---|
addStateListener, cleared, getAverageRate, getCurrentRate, getElapsedTime, getIcon, getRemainingTime, removeStateListener, stateChanged, toString, transferStarted, transferStopped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.xnap.transfer.Transfer |
---|
addStateListener, cleared, getAverageRate, getCurrentRate, getIcon, getRemainingTime, removeStateListener |
Constructor Detail |
---|
public AzureusDownloadContainer(org.gudy.azureus2.core3.download.DownloadManager manager)
Method Detail |
---|
public javax.swing.Action[] getActions()
Transfer
getActions
in interface Transfer
public long getBytesTransferred()
AbstractTransfer
getBytesTransferred
in class AbstractTransfer
AbstractTransfer.getCurrentRate()
public java.lang.String getDescription()
AbstractTransfer
getDescription
in interface Transfer
getDescription
in class AbstractTransfer
public java.io.File getFile()
Transfer
getFile
in interface Transfer
public java.lang.String getFilename()
Transfer
getFilename
in interface Transfer
getFilename
in class AbstractTransfer
public long getFilesize()
Transfer
getFilesize
in interface Transfer
getFilesize
in class AbstractTransfer
public Peer getPeer()
Transfer
getPeer
in interface Transfer
public Plugin getPlugin()
Transfer
getPlugin
in interface Transfer
public Segment[] getSegments()
Transfer
getSegments
in interface Transfer
getSegments
in class AbstractTransfer
public java.lang.String getStatus()
Transfer
getStatus
in interface Transfer
public long getTotalBytesTransferred()
Transfer
getTotalBytesTransferred
in interface Transfer
public boolean isDone()
Transfer
isDone
in interface Transfer
public boolean isRunning()
Transfer
isRunning
in interface Transfer
public int getQueuePosition()
getQueuePosition
in interface Transfer
getQueuePosition
in class AbstractTransfer
public void stateChanged(org.gudy.azureus2.core3.download.DownloadManager manager, int state)
stateChanged
in interface org.gudy.azureus2.core3.download.DownloadManagerListener
DownloadManagerListener.stateChanged(org.gudy.azureus2.core3.download.DownloadManager, int)
public void updateAvailability()
public void downloadComplete(org.gudy.azureus2.core3.download.DownloadManager manager)
downloadComplete
in interface org.gudy.azureus2.core3.download.DownloadManagerListener
DownloadManagerListener.downloadComplete(org.gudy.azureus2.core3.download.DownloadManager)
public void completionChanged(org.gudy.azureus2.core3.download.DownloadManager manager, boolean bCompleted)
completionChanged
in interface org.gudy.azureus2.core3.download.DownloadManagerListener
DownloadManagerListener.completionChanged(org.gudy.azureus2.core3.download.DownloadManager, boolean)
public void peerAdded(org.gudy.azureus2.core3.peer.PEPeer peer)
peerAdded
in interface org.gudy.azureus2.core3.download.DownloadManagerPeerListener
DownloadManagerPeerListener.peerAdded(org.gudy.azureus2.core3.peer.PEPeer)
public void peerRemoved(org.gudy.azureus2.core3.peer.PEPeer peer)
peerRemoved
in interface org.gudy.azureus2.core3.download.DownloadManagerPeerListener
DownloadManagerPeerListener.peerRemoved(org.gudy.azureus2.core3.peer.PEPeer)
public void pieceAdded(org.gudy.azureus2.core3.peer.PEPiece piece)
pieceAdded
in interface org.gudy.azureus2.core3.download.DownloadManagerPeerListener
DownloadManagerPeerListener.pieceAdded(org.gudy.azureus2.core3.peer.PEPiece)
public void pieceRemoved(org.gudy.azureus2.core3.peer.PEPiece piece)
pieceRemoved
in interface org.gudy.azureus2.core3.download.DownloadManagerPeerListener
DownloadManagerPeerListener.pieceRemoved(org.gudy.azureus2.core3.peer.PEPiece)
public void scrapeResult(org.gudy.azureus2.core3.tracker.client.TRTrackerScraperResponse response)
scrapeResult
in interface org.gudy.azureus2.core3.download.DownloadManagerTrackerListener
DownloadManagerTrackerListener.scrapeResult(org.gudy.azureus2.core3.tracker.client.TRTrackerScraperResponse)
public void announceResult(org.gudy.azureus2.core3.tracker.client.TRTrackerResponse response)
announceResult
in interface org.gudy.azureus2.core3.download.DownloadManagerTrackerListener
DownloadManagerTrackerListener.announceResult(org.gudy.azureus2.core3.tracker.client.TRTrackerResponse)
public org.gudy.azureus2.core3.download.DownloadManager getManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |