Beispiel #1
0
 /// <summary>
 /// A verification response has been returned.
 /// </summary>
 /// <param id="state">The state object of the response.</param>
 private void verificationResponse(ClientState state)
 {
     SerializationEngine serializer = new SerializationEngine ();
     Verification vResponse = (Verification)serializer.Deserialize(state.GetDataArray());
     NodeID = vResponse.NodeID;
     HostName = vResponse.HostName;
     DPI = vResponse.DPI;
     CPUCount = vResponse.CPUCount;
     RunningJobs = vResponse.JobCount;
     TotalMemory = vResponse.TotalMemory;
     //make sure the assembly and domain listing is good
     foreach (string assembly in loadedAssemblies)
     {
         if(!loadedAssemblies.Contains(assembly)){
             loadedAssemblies.Add(assembly);
         }
     }
     foreach (string domain in loadedDomains)
     {
         if (!loadedDomains.Contains(domain))
         {
             loadedDomains.Add(domain);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// A distributed job has completed succesfully and this is the response.
 /// </summary>
 /// <param id="state">The state object of the response.</param>
 private void returnExecution(ClientState state)
 {
     SerializationEngine serializer = new SerializationEngine ();
     ExecutionResult res = (ExecutionResult)serializer.Deserialize(state.GetDataArray());
     DomainManager.ReturnExecution(res);
 }