import { Rabbit } from "./rabbit"; import { WrapperManager } from "./wrapperManager"; import { WrapperRegistry } from "./wrapperRegistry"; import { ServerRegistry } from "./serverRegistry"; import { ServerManager } from "./serverManager"; import { PortManager } from "./portManager"; import { ServerStatusManager } from "./serverStatusManager"; import { ServerLifecycle } from "./serverLifecycle"; const wrapperRegistry = new WrapperRegistry(); const serverRegistry = new ServerRegistry(); const portManager = new PortManager(); async function main(){ const rabbit = new Rabbit(); await rabbit.connect(); const wrapperManager = new WrapperManager( rabbit, wrapperRegistry, serverRegistry ); await wrapperManager.start(); const serverManager = new ServerManager( rabbit, wrapperRegistry, serverRegistry, portManager ); const lifecycle = new ServerLifecycle( serverRegistry, serverManager ); lifecycle.start(); const statusManager = new ServerStatusManager( rabbit, serverRegistry ); await statusManager.start(); console.log( "Manager gestartet" ); } main();