org.gudy.azureus2.core3.disk
Interface DiskManagerFileInfo
- All Known Subinterfaces:
- DiskManagerFileInfoHelper
- All Known Implementing Classes:
- DiskManagerFileInfoImpl, DownloadManagerController.fileInfoFacade
public interface DiskManagerFileInfo
- Author:
- Olivier
READ
static final int READ
- See Also:
- Constant Field Values
WRITE
static final int WRITE
- See Also:
- Constant Field Values
ST_LINEAR
static final int ST_LINEAR
- See Also:
- Constant Field Values
ST_COMPACT
static final int ST_COMPACT
- See Also:
- Constant Field Values
ST_REORDER
static final int ST_REORDER
- See Also:
- Constant Field Values
ST_REORDER_COMPACT
static final int ST_REORDER_COMPACT
- See Also:
- Constant Field Values
setPriority
void setPriority(int p)
setSkipped
void setSkipped(boolean b)
setLink
boolean setLink(File link_destination)
- Relink the file to the destination given - this method deals with if the file
is part of a simple torrent or not (so it may set the download name to keep it
in sync). If you just want a simple relink, use setLinkAtomic.
- Parameters:
link_destination
-
- Returns:
setLinkAtomic
boolean setLinkAtomic(File link_destination)
getLink
File getLink()
setStorageType
boolean setStorageType(int type)
- Download must be stopped before calling this!
- Parameters:
type
- one of ST_LINEAR or ST_COMPACT
getStorageType
int getStorageType()
getAccessMode
int getAccessMode()
getDownloaded
long getDownloaded()
getExtension
String getExtension()
getFirstPieceNumber
int getFirstPieceNumber()
getLastPieceNumber
int getLastPieceNumber()
getLength
long getLength()
getNbPieces
int getNbPieces()
getPriority
int getPriority()
isSkipped
boolean isSkipped()
getIndex
int getIndex()
getDownloadManager
DownloadManager getDownloadManager()
getDiskManager
DiskManager getDiskManager()
getFile
File getFile(boolean follow_link)
getTorrentFile
TOTorrentFile getTorrentFile()
read
DirectByteBuffer read(long offset,
int length)
throws IOException
- Throws:
IOException
flushCache
void flushCache()
throws Exception
- Throws:
Exception
getReadBytesPerSecond
int getReadBytesPerSecond()
getWriteBytesPerSecond
int getWriteBytesPerSecond()
getETA
long getETA()
close
void close()
addListener
void addListener(DiskManagerFileInfoListener listener)
removeListener
void removeListener(DiskManagerFileInfoListener listener)