public DownloadWorker(ref PWGlacierAPI api, string jobId, long start, long end, ref BufferBucket bucket, ref TransferMetric metric)
 {
     this.api    = api;
     this.jobId  = jobId;
     this.start  = start;
     this.end    = end;
     this.bucket = bucket;
     this.metric = metric;
 }
Exemple #2
0
 public DownloadWorker(ref PWGlacierAPI api, string jobId, long start, long end, ref BufferBucket bucket, ref TransferMetric metric)
 {
     this.api = api;
     this.jobId = jobId;
     this.start = start;
     this.end = end;
     this.bucket = bucket;
     this.metric = metric;
 }
Exemple #3
0
 public UploaderWorker(ref GlacierAPIInterface api, ref TransferMetric metric, ref byte[] data, string checksum, long start, long end, string uploadId)
 {
     this.api            = api;
     this.metric         = metric;
     this.start          = start;
     this.end            = end;
     this.uploadId       = uploadId;
     this.lastBytesCount = 0;
     this.data           = data;
     this.checksum       = checksum;
 }
Exemple #4
0
 public UploaderWorker(ref GlacierAPIInterface api, ref TransferMetric metric, ref byte[] data, string checksum, long start, long end, string uploadId)
 {
     this.api = api;
     this.metric = metric;
     this.start = start;
     this.end = end;
     this.uploadId = uploadId;
     this.lastBytesCount = 0;
     this.data = data;
     this.checksum = checksum;
 }
        public GlacierizerUploader(GlacierAPIInterface api, Stream input, int partSize, short numThreads)
        {
            glacierAPI = api;
            inputStream = input;
            this.partSize = partSize;
            numRequestedThreads = numThreads;

            threads = new List<ThreadInfo>();
            for (int i = 0; i < numRequestedThreads; ++i)
            {
                ThreadInfo info = new ThreadInfo(partSize);
                threads.Add(info);
            }

            hashList = new List<string>();

            transferMetric = new TransferMetric();
        }
        public GlacierizerUploader(GlacierAPIInterface api, Stream input, int partSize, short numThreads)
        {
            glacierAPI          = api;
            inputStream         = input;
            this.partSize       = partSize;
            numRequestedThreads = numThreads;

            threads = new List <ThreadInfo>();
            for (int i = 0; i < numRequestedThreads; ++i)
            {
                ThreadInfo info = new ThreadInfo(partSize);
                threads.Add(info);
            }

            hashList = new List <string>();

            transferMetric = new TransferMetric();
        }