public OverlayServer createNew() { Console.WriteLine("OverlayController::createNew ENTER"); OverlayServer overlayServer = overlayServerFactory.createServer(strOverlayType); Console.WriteLine("OverlayController::createNew overlayServer created"); Tier0.TransportLayerCommunicator.ISink sink = overlayServer.getProxyNodeController(); OverlayInstanceInfo overlayInstanceInfo = new OverlayInstanceInfo(overlayServer, sink); overlayInstanceRegistry.Add(overlayServer.getGuid(), overlayInstanceInfo); Console.WriteLine("OverlayController::createNew overlayServer added to registry"); Console.WriteLine("OverlayController::createNew EXIT"); return(overlayServer); }
public OverlayServer joinExisting(IPAddress IP, Guid guid) { Console.WriteLine("OverlayController::joinExisting ENTER"); OverlayServer overlayServer = overlayServerFactory.createServer(strOverlayType, IP, guid); Console.WriteLine("OverlayController::joinExisting overlayServer created"); Tier0.TransportLayerCommunicator.ISink sink = overlayServer.getProxyNodeController(); //Server overlay = new Server(IP, guid, (Tier2.Common.ProxyController)(sink)); OverlayInstanceInfo overlayInstanceInfo = new OverlayInstanceInfo(overlayServer, sink); overlayInstanceRegistry.Add(overlayServer.getGuid(), overlayInstanceInfo); Console.WriteLine("OverlayController::joinExisting overlayServer added to registry"); Console.WriteLine("OverlayController::joinExisting EXIT"); return(overlayServer); }
public OverlayInstanceInfo(OverlayServer ov, Tier0.TransportLayerCommunicator.ISink si) { overlayServer = ov; sink = si; }