Changeset 908
- Timestamp:
- 12/04/08 17:22:34 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Communication/ClientConsoleCommunicator.cs
r843 r908 4 4 using System.Text; 5 5 using HeuristicLab.Hive.Client.Communication.Interfaces; 6 using HeuristicLab.Hive.Client.Communication.ClientConsole; 6 using HeuristicLab.Hive.Client.Communication.ClientConsole; 7 7 8 8 namespace HeuristicLab.Hive.Client.Communication { -
trunk/sources/HeuristicLab.Hive.Client.Core/ConfigurationManager.cs
r841 r908 25 25 using System.Text; 26 26 using HeuristicLab.Hive.Contracts.BusinessObjects; 27 using HeuristicLab.Hive.Client.Communication.ClientConsole; 28 using HeuristicLab.Hive.Client.ExecutionEngine; 27 29 28 30 namespace HeuristicLab.Hive.Client.Core { … … 33 35 private static ConfigurationManager instance = null; 34 36 35 private ClientInfo clientInfo; 37 public Core Core { get; set; } 38 private ClientInfo clientInfo; 36 39 private Guid guid; 37 40 … … 42 45 return instance; 43 46 } 47 48 44 49 45 50 /// <summary> … … 55 60 clientInfo.Memory = 1024; 56 61 clientInfo.Name = Environment.MachineName; 62 57 63 } 58 64 59 65 public ClientInfo GetClientInfo() { 60 66 return clientInfo; 67 } 68 69 public StatusCommons GetStatusForClient() { 70 StatusCommons st = new StatusCommons(); 71 st.ClientGuid = guid; 72 st.ConnectedSince = clientInfo.Login; 73 //This is just Temporary! 74 st.JobsAborted = 0; 75 st.JobsDone = 0; 76 st.JobsFetched = 0; 77 st.Status = StatusCommons.ClientStatusEnum.Connected; 78 79 Dictionary<long, Executor> engines = Core.GetExecutionEngines(); 80 foreach (KeyValuePair<long, Executor> kvp in engines) { 81 Executor e = kvp.Value; 82 st.Jobs.Add(new JobStatus { JobId = e.JobId, Progress = e.Progress, Since = e.CreationTime }); 83 } 84 return st; 61 85 } 62 86 -
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r901 r908 56 56 ClientConsoleServer server = new ClientConsoleServer(); 57 57 server.StartClientConsoleServer(new Uri("net.tcp://127.0.0.1:8000/ClientConsole/")); 58 59 ConfigurationManager manager = ConfigurationManager.GetInstance(); 60 manager.Core = this; 58 61 59 62 clientCommunicator = ServiceLocator.GetClientCommunicator(); … … 155 158 } 156 159 } 160 161 public Dictionary<long, Executor> GetExecutionEngines() { 162 return engines; 163 } 157 164 } 158 165 } -
trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/Executor.cs
r830 r908 37 37 public MessageContainer.MessageType CurrentMessage { get; set; } 38 38 public MessageQueue Queue { get; set; } 39 public double Progress { 40 get { 41 return Job.Progress; 42 } 43 } 39 44 40 public void Start(byte[] serializedJob) { 45 public DateTime CreationTime { get; set; } 46 47 public void Start(byte[] serializedJob) { 48 CreationTime = DateTime.Now; 41 49 Job = (IJob)PersistenceManager.RestoreFromGZip(serializedJob); 42 50 Job.JobStopped += new EventHandler(Job_JobStopped);
Note: See TracChangeset
for help on using the changeset viewer.