Changeset 841 for trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
- Timestamp:
- 11/27/08 16:34:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r840 r841 68 68 69 69 public void Start() { 70 Heartbeat beat = new Heartbeat { Interval = 5000 };71 beat.StartHeartbeat();72 73 ClientInfo clientInfo = new ClientInfo { ClientId = Guid.NewGuid() };74 75 70 clientCommunicator = ServiceLocator.GetClientCommunicator(); 76 71 clientCommunicator.LoginCompleted += new EventHandler<LoginCompletedEventArgs>(ClientCommunicator_LoginCompleted); 77 72 clientCommunicator.PullJobCompleted += new EventHandler<PullJobCompletedEventArgs>(ClientCommunicator_PullJobCompleted); 78 73 clientCommunicator.SendJobResultCompleted += new EventHandler<SendJobResultCompletedEventArgs>(ClientCommunicator_SendJobResultCompleted); 79 clientCommunicator.LoginAsync(clientInfo); 74 clientCommunicator.LoginAsync(ConfigurationManager.GetInstance().GetClientInfo()); 75 76 Heartbeat beat = new Heartbeat { Interval = 5000 }; 77 beat.StartHeartbeat(); 80 78 81 79 MessageQueue queue = MessageQueue.GetInstance(); … … 91 89 if (e.Result.Success) { 92 90 Logging.GetInstance().Info(this.ToString(), "Login completed to Hive Server @ " + DateTime.Now); 91 ConfigurationManager.GetInstance().Loggedin(); 93 92 Status.LoginTime = DateTime.Now; 94 93 Status.LoggedIn = true; … … 144 143 byte[] sJob = engines[jId].GetFinishedJob(); 145 144 146 JobResult jobResult = new JobResult { JobId = jId, Result = sJob, Client = null};145 JobResult jobResult = new JobResult { JobId = jId, Result = sJob, Client = ConfigurationManager.GetInstance().GetClientInfo() }; 147 146 clientCommunicator.SendJobResultAsync(jobResult, true); 148 147 }
Note: See TracChangeset
for help on using the changeset viewer.