Пример #1
0
        /*public SPOProvider (){
         * }*/

        public static ISpecialObject GetByCategory(string objectName, Backup backup, P2PBackup.Common.BackupLevel level, ProxyTaskInfo pti)
        {
            /*switch(objectName){
             * case "VSS":
             *      return new VSS(level);
             * case "VMWare VM configuration":
             *      return new VMWareVmConfig(pti);
             * case "StorageLayout":
             *      return new StorageLayoutSPO(backup.StorageLayout);
             *
             * default:
             *      throw new Exception("No Special object matching category '"+objectName+"'");*/

            return((ISpecialObject)Activator.CreateInstance(PluginsDiscoverer.Instance().Plugins[objectName].RawType));
        }
Пример #2
0
 internal BackupRootDriveHandler(BackupRootDrive brd, long taskId, long maxChkSize, long maxPack, int maxChunkFiles, P2PBackup.Common.BackupLevel bType, long refStartDate, long refEndDate, long referenceTaskid /*, long refMaxId*/)
 {
     backupRootDrive      = brd;
     maxChunkSize         = maxChkSize;
     maxPackSize          = maxPack;
     this.maxChunkFiles   = maxChunkFiles;
     nbItems              = 0;
     this.backupType      = bType;
     this.depth           = 0;
     this.subCompletionNb = 0;
     this.completionBase  = 0;
     this.refStartDate    = refStartDate;
     this.refEndDate      = refEndDate;
     this.referenceTaskid = referenceTaskid;
     this.MaxItemID       = 0;      //refMaxId;
     this.TaskId          = taskId;
     //if(path.Type ==  BasePath.PathType.FS)
     //itemIterator = GetFilesToBackup().GetEnumerator();
     prov         = ItemProvider.GetProvider();
     fsEnumerator = FSEnumeratorProvider.GetFSEnumeratorProvider();
 }