public BackendManager(string backendurl, Options options, IBackendWriter statwriter, LocalDatabase database) { m_options = options; m_backendurl = backendurl; m_statwriter = statwriter; m_taskControl = statwriter as BasicResults; m_db = new DatabaseCollector(database, statwriter); m_backend = DynamicLoader.BackendLoader.GetBackend(m_backendurl, m_options.RawOptions); if (m_backend == null) throw new Exception(string.Format("Backend not supported: {0}", m_backendurl)); if (!m_options.NoEncryption) { m_encryption = DynamicLoader.EncryptionLoader.GetModule(m_options.EncryptionModule, m_options.Passphrase, m_options.RawOptions); if (m_encryption == null) throw new Exception(string.Format("Encryption method not supported: ", m_options.EncryptionModule)); } if (m_taskControl != null) m_taskControl.StateChangedEvent += (state) => { if (state == TaskControlState.Abort) m_thread.Abort(); }; m_queue = new BlockingQueue<FileEntryItem>(options.SynchronousUpload ? 1 : (options.AsynchronousUploadLimit == 0 ? int.MaxValue : options.AsynchronousUploadLimit)); m_thread = new System.Threading.Thread(this.ThreadRun); m_thread.Name = "Backend Async Worker"; m_thread.IsBackground = true; m_thread.Start(); }
public RecreateDatabaseResults(BasicResults p) : base(p) { }
public DeleteResults(BasicResults p) : base(p) { }
public BasicResults(BasicResults p) { this.BeginTime = DateTime.UtcNow; this.m_parent = p; }
public BasicResults() { this.BeginTime = DateTime.UtcNow; this.m_parent = null; m_messages = new Library.Utility.FileBackedStringList(); m_warnings = new Library.Utility.FileBackedStringList(); m_errors = new Library.Utility.FileBackedStringList(); m_retryAttempts = new Library.Utility.FileBackedStringList(); m_dbqueue = new Queue<DbMessage>(); m_backendStatistics = new BackendWriter(this); m_callerThread = System.Threading.Thread.CurrentThread; m_backendProgressUpdater = new BackendProgressUpdater(); m_operationProgressUpdater = new OperationProgressUpdater(); }
public BasicResults(BasicResults p) { this.BeginTime = DateTime.UtcNow; this.m_parent = p; }
public BackendWriter(BasicResults p) : base(p) { }
public BackendWriter(BasicResults p) : base(p) { }
public DeleteResults(BasicResults p) : base(p) { }
public RecreateDatabaseResults(BasicResults p) : base(p) { }
protected BasicResults(BasicResults p) { this.BeginTime = DateTime.UtcNow; this.m_parent = p; }
public PurgeFilesResults(BasicResults p) : base(p) { }
public TestResults(BasicResults p) : base(p) { }
public RepairResults(BasicResults p) : base(p) { }
public RepairResults(BasicResults p) : base(p) { }
public CompactResults(BasicResults p) : base(p) { }
public CompactResults(BasicResults p) : base(p) { }
public TestResults(BasicResults p) : base(p) { }
public VacuumResults(BasicResults p) : base(p) { }