/// <summary> /// Signal to the controlling presto server that the currently running module has finished its work /// and is ready to be disposed. /// </summary> public void SignalComplete(string domainKey) { DomainManager.DestroyDomain(domainKey, true); }
/// <summary> /// This server needs to verify itself and send back a Verfication object. /// </summary> /// <param id="state">The server state object.</param> private static void verifyResponse(ServerState state) { Transfers.Verification verification = new Transfers.Verification(NodeID, ClusterManager.HostName, DPI.GetDPI(), Memory.GetTotalSize(), CPU.GetCount(), Executor.RunningJobs(), DomainManager.GetAllDomainKeys(), DomainManager.GetAllAssemblyNames()); SerializationEngine serializer = new SerializationEngine(); state.Write(MessageType.VERIFICATION_RESPONSE, serializer.Serialize(verification).ToArray()); }