Changeset 5053
- Timestamp:
- 12/07/10 10:46:26 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources
- Files:
-
- 2 added
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources
-
Property
svn:ignore
set to
HeuristicLab.Hive-3.4.suo
-
Property
svn:ignore
set to
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HiveExperiment/HiveExperimentClient.cs
r4905 r5053 305 305 using (Disposable<IHiveService> service = ServiceLocator.Instance.ServicePool.GetService()) { 306 306 foreach (HiveJob hj in HiveJob.GetAllHiveJobs()) { 307 service.Obj. AbortJob(hj.Job.Id);307 service.Obj.StopJob(hj.Job.Id); 308 308 } 309 309 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HiveExperiment/HiveJobClient.cs
r5000 r5053 465 465 IEnumerable<IPluginDescription> neededPlugins = ApplicationManager.Manager.Plugins; //HivePluginInfoDto.FindPluginsNeeded(optimizerJob.GetType()); 466 466 using (var service = ServiceLocator.Instance.ServicePool.GetService()) { 467 IEnumerable<Plugin> availablePlugins = service.Obj.Get AvailablePlugins();467 IEnumerable<Plugin> availablePlugins = service.Obj.GetPlugins(); 468 468 foreach (IPluginDescription neededPlugin in neededPlugins) { 469 469 Plugin found = availablePlugins.Where(availablePlugin => availablePlugin.Name == neededPlugin.Name && availablePlugin.Version.Major == neededPlugin.Version.Major && availablePlugin.Version.Minor == neededPlugin.Version.Minor && availablePlugin.Version.Revision == neededPlugin.Version.Revision && availablePlugin.Version.MinorRevision == neededPlugin.Version.MinorRevision).SingleOrDefault(); -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/ServiceContracts/IHiveService.cs
r5038 r5053 35 35 JobData GetJobData(Guid jobId); 36 36 37 [OperationContract]38 Stream GetJobDataStreamed(Guid jobId);37 //[OperationContract] 38 //Stream GetJobDataStreamed(Guid jobId); 39 39 40 40 [OperationContract] 41 41 void UpdateJob(Job jobDto, JobData jobDataDto); 42 42 43 [OperationContract] // formerly StoreFinishedJobResultStreamed44 void UpdateJobDataStreamed(Stream stream);43 //[OperationContract] // formerly StoreFinishedJobResultStreamed 44 //void UpdateJobDataStreamed(Stream stream); 45 45 46 46 [OperationContract] … … 72 72 #endregion 73 73 74 75 74 #region Job Control Methods 76 75 [OperationContract] 77 void AbortJob(Guid jobId);76 void StopJob(Guid jobId); 78 77 79 78 [OperationContract] … … 116 115 //[OperationContract] 117 116 //void Logout(Guid clientId); 117 118 [OperationContract] 119 void Hello(Guid slaveId, string name, int cores, int memory); 120 121 [OperationContract] 122 void GoodBye(); 118 123 #endregion 119 124 120 125 #region Heartbeat Methods 121 126 [OperationContract] 122 List<MessageContainer> ProcessHeartbeat(Heartbeat heartbeat);127 List<MessageContainer> Heartbeat(Heartbeat heartbeat); 123 128 #endregion 124 129 125 130 #region Plugin Methods 126 131 [OperationContract] 132 Guid AddPlugin(Plugin plugin, List<PluginData> pluginData); 133 [OperationContract] 134 IEnumerable<Plugin> GetPlugins(); 135 [OperationContract] 127 136 IEnumerable<PluginData> GetPluginDatas(List<Guid> pluginIds); 128 [OperationContract]129 Stream GetStreamedPluginDatas(List<Guid> pluginIds);130 [OperationContract]131 IEnumerable<Plugin> GetAvailablePlugins();132 [OperationContract]133 Guid AddPlugin(Plugin plugin, List<PluginData> pluginData);134 137 #endregion 135 138 136 #region Calendar Methods 137 [OperationContract] 138 IEnumerable<Appointment> GetCalendar(Guid slaveId); 139 [OperationContract] 140 void SetCalendarStatus(Guid clientId, CalendarState state); 141 [OperationContract] 142 IEnumerable<Appointment> GetUptimeCalendarForResource(Guid guid); 143 [OperationContract] 144 void SetUptimeCalendarForResource(Guid guid, IEnumerable<Appointment> appointments, bool isForced); 145 #endregion 139 // slave should be unaware of calendar. only server decides based on calendar if slave gets jobs 140 //#region Calendar Methods 141 //[OperationContract] 142 //IEnumerable<Appointment> GetCalendar(Guid slaveId); 143 //[OperationContract] 144 //void SetCalendarStatus(Guid clientId, CalendarState state); 145 //[OperationContract] 146 //IEnumerable<Appointment> GetUptimeCalendarForResource(Guid guid); 147 //[OperationContract] 148 //void SetUptimeCalendarForResource(Guid guid, IEnumerable<Appointment> appointments, bool isForced); 149 //#endregion 146 150 147 151 #region Slave Methods -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HiveService.cs
r5038 r5053 113 113 114 114 #region Job Control Methods 115 public void AbortJob(Guid jobId) {115 public void StopJob(Guid jobId) { 116 116 using (trans.OpenTransaction()) { 117 117 throw new NotImplementedException(); … … 164 164 165 165 #region Login Methods 166 //public void Login() { 167 // throw new NotImplementedException(); 168 //} 169 170 //public void Login(Slave slave) { 171 // throw new NotImplementedException(); 172 //} 173 174 //public void Logout(Guid clientId) { 175 // throw new NotImplementedException(); 176 //} 166 public void Hello(Guid slaveId, string name, int cores, int memory) { 167 throw new NotImplementedException(); 168 } 169 170 public void GoodBye() { 171 throw new NotImplementedException(); 172 } 177 173 #endregion 178 174 179 175 #region Heartbeat Methods 180 public List<MessageContainer> ProcessHeartbeat(Heartbeat heartbeat) {176 public List<MessageContainer> Heartbeat(Heartbeat heartbeat) { 181 177 using (trans.OpenTransaction()) { 182 178 return hive.ProcessHeartbeat(heartbeat); … … 186 182 187 183 #region Plugin Methods 188 public IEnumerable<PluginData> GetPluginDatas(List<Guid> pluginIds) {189 throw new NotImplementedException();190 }191 public Stream GetStreamedPluginDatas(List<Guid> pluginIds) {192 throw new NotImplementedException();193 }194 public IEnumerable<Plugin> GetAvailablePlugins() {195 return dao.GetPlugins(x => true);196 }197 184 public Guid AddPlugin(Plugin plugin, List<PluginData> pluginDatas) { 198 185 using (trans.OpenTransaction()) { … … 205 192 } 206 193 } 207 #endregion 208 209 #region Calendar Methods 210 public IEnumerable<Appointment> GetCalendar(Guid clientId) { 211 throw new NotImplementedException(); 212 } 213 214 public void SetCalendarStatus(Guid clientId, CalendarState state) { 215 using (trans.OpenTransaction()) { 216 throw new NotImplementedException(); 217 } 218 } 219 220 public IEnumerable<Appointment> GetUptimeCalendarForResource(Guid guid) { 221 throw new NotImplementedException(); 222 } 223 224 public void SetUptimeCalendarForResource(Guid guid, IEnumerable<Appointment> appointments, bool isForced) { 225 throw new NotImplementedException(); 226 } 227 #endregion 228 194 public IEnumerable<Plugin> GetPlugins() { 195 return dao.GetPlugins(x => true); 196 } 197 public IEnumerable<PluginData> GetPluginDatas(List<Guid> pluginIds) { 198 throw new NotImplementedException(); 199 } 200 public Stream GetStreamedPluginDatas(List<Guid> pluginIds) { 201 throw new NotImplementedException(); 202 } 203 #endregion 204 229 205 #region Slave Methods 230 206 public Guid AddSlave(Slave slave) { … … 292 268 293 269 #endregion 270 294 271 } 295 272 }
Note: See TracChangeset
for help on using the changeset viewer.