FileDocCategorySizeDatePackage
DiskManagerFactory.javaAPI DocAzureus 3.0.3.43503Wed Dec 13 16:17:26 GMT 2006org.gudy.azureus2.core3.disk

DiskManagerFactory

public class DiskManagerFactory extends Object
author
parg

Fields Summary
Constructors Summary
Methods Summary
public static voidclearResumeData(DownloadManager download_manager, DiskManagerFileInfo file)

		RDResumeHandler.clearResumeData( download_manager, file );
	
public static DiskManagercreate(TOTorrent torrent, DownloadManager manager)

		DiskManagerImpl dm = new DiskManagerImpl( torrent, manager );
		
		if ( dm.getState() != DiskManager.FAULTY ){
			
			dm.start();
		}
		
		return dm;
	
public static voiddeleteDataFiles(TOTorrent torrent, java.lang.String torrent_save_dir, java.lang.String torrent_save_file)

	  DiskManagerImpl.deleteDataFiles(torrent, torrent_save_dir, torrent_save_file );
	
public static DiskManagerFileInfo[]getFileInfoSkeleton(DownloadManager download_manager, DiskManagerListener listener)

		return( DiskManagerImpl.getFileInfoSkeleton( download_manager, listener ));
	
public static booleanisTorrentResumeDataComplete(DownloadManagerState dms)

		return RDResumeHandler.isTorrentResumeDataComplete( dms );
	
public static voidrecheckFile(DownloadManager download_manager, DiskManagerFileInfo file)

		RDResumeHandler.recheckFile( download_manager, file );
	
public static voidsetFileLinks(DownloadManager download_manager, com.aelitis.azureus.core.util.CaseSensitiveFileMap links)

		DiskManagerImpl.setFileLinks( download_manager, links );
	
public static voidsetResumeDataCompletelyValid(DownloadManagerState download_manager_state)
Method to preset resume data to indicate completely valid file. Doesn't save the torrent

param
torrent

		RDResumeHandler.setTorrentResumeDataComplete( download_manager_state );
	
public static voidsetTorrentResumeDataNearlyComplete(DownloadManagerState dms)
Sets resume data complete apart from a few random pieces. On torrent start these will be checked This is used in the "open for seeding" mode to ensure that there's at least a chance that the data they claim represents the data for the torrent is valid

param
torrent
param
torrent_save_dir
param
torrent_save_file

		RDResumeHandler.setTorrentResumeDataNearlyComplete( dms );