Class: SiteLoadingOrchestrator
Defined in: electron/services/database/SiteRepositoryService.ts:333
Orchestrates the complete site loading process. Coordinates data loading with side effects.
Constructors
Constructor
new SiteLoadingOrchestrator(siteRepositoryService: SiteRepositoryService): SiteLoadingOrchestrator;
Defined in: electron/services/database/SiteRepositoryService.ts:336
Parameters
siteRepositoryService
Returns
SiteLoadingOrchestrator
Properties
siteRepositoryService
private readonly siteRepositoryService: SiteRepositoryService;
Defined in: electron/services/database/SiteRepositoryService.ts:334
Methods
getSafeFailureDetail()
private getSafeFailureDetail(error: unknown): string;
Defined in: electron/services/database/SiteRepositoryService.ts:340
Parameters
error
unknown
Returns
string
loadSitesFromDatabase()
loadSitesFromDatabase(siteCache: StandardizedCache<Site>, monitoringConfig: MonitoringConfig): Promise<{
message: string;
sitesLoaded: number;
success: boolean;
}>;
Defined in: electron/services/database/SiteRepositoryService.ts:350
Load sites from database and start monitoring. Coordinates all aspects of site loading process.
Parameters
siteCache
monitoringConfig
Returns
Promise<{
message: string;
sitesLoaded: number;
success: boolean;
}>