示例#1
0
 /// <summary>
 /// Constructs a storage engine to use
 /// </summary>
 /// <param name="endpointUrl">URL of the endpoint to access</param>
 /// <param name="fileCompositionHelperAddress">Endpoint to which higgs file parts can be retrieved</param>
 /// <param name="higgsFileRegistrationAddress">Endpoint to which newly created Higgs files can be registered</param>
 /// <param name="hash">Hashing algorithm to use (SHA256)</param>
 /// <param name="iocKernel">Inversion of control kernel to use</param>
 /// <param name="storageZoneId">Storage zone to target</param>
 /// <param name="pieceCache">Local piece cache to check against</param>
 public StorageEngine(string endpointUrl, string pieceCheckerUrl, string fileCompositionHelperAddress, string higgsFileRegistrationAddress, IHashTool hash, long storageZoneId, ILocalPieceCache pieceCache)
 {
     EndpointUrl = endpointUrl;
     _fileCompositionHelperAddress = fileCompositionHelperAddress;
     _higgsFileRegistrationAddress = higgsFileRegistrationAddress;
     _hash = hash;
     _storageZoneId = storageZoneId;
     _pieceCache = pieceCache;
     _pieceCheckerUrl = pieceCheckerUrl;
 }
示例#2
0
 /// <summary>
 /// Constructs a storage engine to use
 /// </summary>
 /// <param name="endpointUrl">URL of the endpoint to access</param>
 /// <param name="fileCompositionHelperAddress">Endpoint to which higgs file parts can be retrieved</param>
 /// <param name="higgsFileRegistrationAddress">Endpoint to which newly created Higgs files can be registered</param>
 /// <param name="hash">Hashing algorithm to use (SHA256)</param>
 /// <param name="iocKernel">Inversion of control kernel to use</param>
 /// <param name="storageZoneId">Storage zone to target</param>
 /// <param name="pieceCache">Local piece cache to check against</param>
 public StorageEngine(string endpointUrl, string pieceCheckerUrl, string fileCompositionHelperAddress, string higgsFileRegistrationAddress, IHashTool hash, long storageZoneId, ILocalPieceCache pieceCache)
 {
     EndpointUrl = endpointUrl;
     _fileCompositionHelperAddress = fileCompositionHelperAddress;
     _higgsFileRegistrationAddress = higgsFileRegistrationAddress;
     _hash            = hash;
     _storageZoneId   = storageZoneId;
     _pieceCache      = pieceCache;
     _pieceCheckerUrl = pieceCheckerUrl;
 }
示例#3
0
 public StorageEngine(string endpointUrl, string pieceCheckerUrl, string fileCompositionHelperAddress, string higgsFileRegistrationAddress,
     IHashTool hash, long storageZoneId)
     : this(endpointUrl, pieceCheckerUrl, fileCompositionHelperAddress, higgsFileRegistrationAddress,
     hash, storageZoneId, new NullPieceCache())
 {
 }
示例#4
0
 public StorageEngine(string endpointUrl, string pieceCheckerUrl, string fileCompositionHelperAddress, string higgsFileRegistrationAddress,
                      IHashTool hash, long storageZoneId)
     : this(endpointUrl, pieceCheckerUrl, fileCompositionHelperAddress, higgsFileRegistrationAddress,
            hash, storageZoneId, new NullPieceCache())
 {
 }