C# 클래스 Illumina.TerminalVelocity.Downloader

파일 보기 프로젝트 열기: basespace/TerminalVelocity 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ExecuteAndSquash void
StartDownloading void

공개 메소드들

메소드 설명
ComputeProgressIndicator ( long bytesWritten, long fileSize ) : int
Dispose ( ) : void
Downloader ( BufferManager bufferManager, ILargeFileDownloadParameters parameters, ConcurrentQueue writeQueue, ConcurrentStack readStack, bool>.Func downloadThrottle, int expectedChunkTimeInSeconds, FailureToken failureToken, Action logger = null, CancellationToken cancellation = null, ISimpleHttpGetByRangeClient>.Func clientFactory = null ) : System
ExpectedDownloadTimeInSeconds ( int chunkSizeInBytes ) : int
GetChunkCount ( long fileSize, long chunkSize ) : int
GetChunkSizeForCurrentChunk ( long fileSize, int maxChunkSize, int zeroBasedChunkNumber ) : int
GetChunkStart ( int currentChunk, int maxChunkSize ) : long
NeedToCheckForUnwrittenChunks ( ConcurrentStack readStack, System.DateTime lastWriteTime, int minutesToWait ) : bool
Start ( ) : void
Wait ( System.TimeSpan time ) : void
Wait ( int time ) : void

비공개 메소드들

메소드 설명
ExecuteAndSquash ( System.Action a ) : void
StartDownloading ( CancellationToken ct, FailureToken ft, ILargeFileDownloadParameters parameters, IAsyncProgress progress = null, Action logger = null, BufferManager bufferManager = null ) : void

메소드 상세

ComputeProgressIndicator() 공개 정적인 메소드

public static ComputeProgressIndicator ( long bytesWritten, long fileSize ) : int
bytesWritten long
fileSize long
리턴 int

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Downloader() 공개 메소드

public Downloader ( BufferManager bufferManager, ILargeFileDownloadParameters parameters, ConcurrentQueue writeQueue, ConcurrentStack readStack, bool>.Func downloadThrottle, int expectedChunkTimeInSeconds, FailureToken failureToken, Action logger = null, CancellationToken cancellation = null, ISimpleHttpGetByRangeClient>.Func clientFactory = null ) : System
bufferManager BufferManager
parameters ILargeFileDownloadParameters
writeQueue ConcurrentQueue
readStack ConcurrentStack
downloadThrottle bool>.Func
expectedChunkTimeInSeconds int
failureToken FailureToken
logger Action
cancellation System.Threading.CancellationToken
clientFactory ISimpleHttpGetByRangeClient>.Func
리턴 System

ExpectedDownloadTimeInSeconds() 공개 정적인 메소드

public static ExpectedDownloadTimeInSeconds ( int chunkSizeInBytes ) : int
chunkSizeInBytes int
리턴 int

GetChunkCount() 공개 정적인 메소드

public static GetChunkCount ( long fileSize, long chunkSize ) : int
fileSize long
chunkSize long
리턴 int

GetChunkSizeForCurrentChunk() 공개 정적인 메소드

public static GetChunkSizeForCurrentChunk ( long fileSize, int maxChunkSize, int zeroBasedChunkNumber ) : int
fileSize long
maxChunkSize int
zeroBasedChunkNumber int
리턴 int

GetChunkStart() 공개 정적인 메소드

public static GetChunkStart ( int currentChunk, int maxChunkSize ) : long
currentChunk int
maxChunkSize int
리턴 long

NeedToCheckForUnwrittenChunks() 공개 정적인 메소드

public static NeedToCheckForUnwrittenChunks ( ConcurrentStack readStack, System.DateTime lastWriteTime, int minutesToWait ) : bool
readStack ConcurrentStack
lastWriteTime System.DateTime
minutesToWait int
리턴 bool

Start() 공개 메소드

public Start ( ) : void
리턴 void

Wait() 공개 메소드

public Wait ( System.TimeSpan time ) : void
time System.TimeSpan
리턴 void

Wait() 공개 메소드

public Wait ( int time ) : void
time int
리턴 void