Esempio n. 1
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;
 }
Esempio n. 2
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;
 }
Esempio n. 3
0
        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();
        }
 public void SetUp()
 {
     api = new TestGlacierAPI();
 }
 public void SetUp()
 {
     api = new TestGlacierAPI();
 }